-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tuya] Add support for IR controller #501
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
bd8de55
[tuya] IR Controller: changed the name of the parameters
d51x 84a9ac4
[tuya] IR Controller: added support code in NEC-format for receiving …
d51x 0c3d2d1
[tuya] IR Controller: refactor code, add one ir-code channel with opt…
d51x eeb2cb0
[tuya] IR Controller: refactor code, add one ir-code channel with opt…
d51x 81419c0
[tuya] IR Controller: refactor code, add one ir-code channel with opt…
d51x 4711f63
[tuya] IR Controller: refactor code, add one ir-code channel with opt…
d51x ff4b370
[tuya] IR Controller: update docs
d51x 781e1b5
[tuya] IR Controller: fix code style
d51x 40aa177
[tuya] IR Controller: fix code style
d51x 077f138
[tuya] IR Controller: fix code style & possible check for NPE
d51x 06097e2
[tuya] IR Controller: fix code style & possible check for NPE
d51x abca4e9
Merge remote-tracking branch 'd51x/4.0/tuya-ir-controller' into 4.0/t…
d51x 21ff55c
[tuya] IR Controller: fix continuous learning key code
d51x 6c1fe69
[tuya] IR Controller: fix possible NPE
d51x 3a14657
fix code format after spotless check
d51x 0e887ba
fix code format after spotless check
d51x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...mej.binding.tuya/src/main/java/org/smarthomej/binding/tuya/internal/local/dto/IrCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* Copyright (c) 2021-2023 Contributors to the SmartHome/J project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.smarthomej.binding.tuya.internal.local.dto; | ||
|
||
import org.eclipse.jdt.annotation.*; | ||
|
||
/** | ||
* The {@link IrCode} represents the IR code decoded messages sent by Tuya devices | ||
* | ||
* @author Dmitry Pyatykh - Initial contribution | ||
*/ | ||
@NonNullByDefault | ||
public class IrCode { | ||
public String type = ""; | ||
public String hex = ""; | ||
public Integer address = 0; | ||
public Integer data = 0; | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that automatically added by discovery?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be
as i know, there are two types of ir controllers - old version (works via dp201) and new version (works via dp1,2,3,4,7,10,13)
How automaticaly detects it, I don't know
and new version can work in two modes - DIY (now I can convert base64 tuya key code to nec format) and Tuya Library Mode, where key code consists from head and other data