You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will also output just the second line if only the power was switched (and the Dimmer was not changed).
Would it be possible to have an option to ignore updates if the value is not present in the JSON. For example, I'm currently matching on just Dimmer - but if there was some sort of alternate syntax supported (just an idea), say ..Dimmer - if the value was not in the JSON, rather than treating it as 0 or false it would just ignore it, and treat it as if it was not sent.
Thanks again!
The text was updated successfully, but these errors were encountered:
Hmm, that's not so easy to accomplish, I'm caching the payload of all incoming topics, so if an iOS device issues a HAP Get I'm reading the value from that cache. But when a payload with a missing property overwrites the previous entry in the cache I have no possibility to answer on a Get request for the then missing property - because homekit2mqtt has no knowledge of the previous payload(s) - in your example I can't give an answer to a Get on the dimmer value after {"POWER":"ON"} overwrote the cache.
It's not impossible - but it's huge effort (first idea: keeping a distinct cache for all characteristics). Will think about it, maybe I come up with a easier solution, give me some time.
I've tried to figure it out in the code quickly, but not getting too far, if you have some quick pointers where the incoming messages are saved, I can try and see if I can come up with a patch that'll work.
Thanks for #67 - just started using it now! :)
Much like the original posts on #67, I'm using Tasmota. I have a dimmable light, but unfortunately Tasmota will often output the following:
It will also output just the second line if only the power was switched (and the Dimmer was not changed).
Would it be possible to have an option to ignore updates if the value is not present in the JSON. For example, I'm currently matching on just
Dimmer
- but if there was some sort of alternate syntax supported (just an idea), say..Dimmer
- if the value was not in the JSON, rather than treating it as0
orfalse
it would just ignore it, and treat it as if it was not sent.Thanks again!
The text was updated successfully, but these errors were encountered: