Skip to content
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

Fix TX5 effect names #1303

Merged
merged 3 commits into from
Feb 14, 2024
Merged

Fix TX5 effect names #1303

merged 3 commits into from
Feb 14, 2024

Conversation

frborda
Copy link
Contributor

@frborda frborda commented Jan 5, 2024

In TX5 the ambient light modes ("lightMode") are between 0 and 7. Mode 0 is one of them.

@frborda
Copy link
Contributor Author

frborda commented Jan 5, 2024

I have tested it on my TX5

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 5, 2024

And why previous condition don't work?

@frborda
Copy link
Contributor Author

frborda commented Jan 5, 2024

because it had the condition of != "0" then modes 1 to 7 worked, but 0 is also a valid option. The device has 8 modes, 0 to 7. To turn off the ambient light it is not mode 0, it is "lightSwitch" to "off"

@AlexxIT AlexxIT self-assigned this Jan 5, 2024
@AlexxIT AlexxIT merged commit 5166e18 into AlexxIT:master Feb 14, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 14, 2024

Thanks!

@AlexxIT AlexxIT added this to the v3.5.5 milestone Feb 14, 2024
@AlexxIT AlexxIT changed the title Fix TX5 ambient light change to 0 mode. error https://github.com/AlexxIT/SonoffLAN/issues/1247 Fix TX5 effect names Feb 14, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants