-
Notifications
You must be signed in to change notification settings - Fork 23
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
ERROR: TypeError: '<=' not supported between instances of 'int' and 'str' #64
Comments
After this change i am able to control my dali device
|
Why are you setting the level of the light to "MASK" ?! it should be a number 0..255 |
I am not doing anything :D It is your code :D I am just debugging it |
For that debug message to appear, you have published "MASK" to the MQTT topic |
Only if homeassistant is doing that without my knowledge which i doubt. Only if that is some handshake issue. But only i did so far was running your code. |
Did you do any sort of configuration in Home Assistant ? Because the daemon should have configured all the devices for you, without any human intervention. |
Hmm that is weird but MASK string issue disappeared too. So confusing. I will let you know if i will notice it once again. |
No these errors appeared directly after running your python code. Didn't have time to go and do something in HA |
A warning should be logged indeed, but I advise against setting an arbitrary level. Would you like to open a PR ? |
Yes sure. Just to clarify the MASK word always appeared at the beginning when i run code. But if i kept it running and was doing changes using HA all values were correct. But when i closed and run app again, i got MASK word again and then it worked ok again. Sorry for a lot of "again" words. Now the word sometimes appear sometimes not at the beginning of running application. |
Once i will have more time i will try to debug it more why it appear randomly at the beginning. |
there is no "MASK" in my code 😬 and worst... that setter is called at https://github.com/dgomes/dali2mqtt/blob/master/dali2mqtt/dali2mqtt.py#L276 which does a cast to int... so no string should have ever reached the setter. |
I'm available at Home Assistant discord with the same handle as here, if you would like to reach out to expedite debug |
The bottom one doesn't have ".value" postfix call as the upper once |
variable is different... it's but if the error is coming from that part of the code it means the driver (Tridonic) is storing "MASK" instead of a value..... again the issue is in python-dali... it need to be standardised there IMHO |
Not doing any Colour queries... would find quite odd to ask for brightness and the driver returning colour :/ |
Where is that ? (better link code then to attach screenshots...) |
dear I am designing this bridge with specific features, such as the automatic detection of DALI drivers, their identification, address assignment, and determining their type (DT6 or DT8). My goal is also to enable control via Matter. |
@hichemsystem1 Hi, i guess you are trying to reach owner. |
Please don't post messages unrelated to the issue. @hichemsystem1 you can reach me out on Home Assistant Discord https://www.home-assistant.io/join-chat I go by @dgomes @Hadatko sorry, never followed up on this :/ |
Sorry for spam. No problem, i didn't work on that since then. |
I made modification to see why i am getting this error
With result
1
MASK
254
2024-02-02 20:11:24,767 ERROR: TypeError: '<=' not supported between instances of 'int' and 'str'
The text was updated successfully, but these errors were encountered: