Closed Scaredycrow closed 3 years ago
Thanks again! This was really helpful -- when I was putting together the V2 support, I didn't understand the difference between "oscillation" and "oscillation_state." This pointed me in the right direction.
I pushed a fix for this to the main branch. It looks from this stack trace that you're still on the experimental branch, so I'd suggest switching over :-)
V2 devices emit two different states:
oscillation
this is the configured (or intended) mode. This is what the fan would do if it had to do anything at all.oscillation_state
this, I think, is the current mode (what the fan is actually doing). If the fan has met the Air Quality and Heat Targets, it might be off -- in this case, oscillation_state
is IDLE (vs: OFF.)dyson_oscillation_mode reflects the intention, which is consistent with the other _mode metrics. The state is reflected in dyson_oscillation_state which is also consistent with the other _state metrics -- in case that makes a difference to your dashboard.
Great. I'll test this in the next day or so. This is making it's way out of my testing vm's and into a "prod" state of my home lab.
Update applied. I will confirm efficacy in the next 24 hours. I've also converted the existing Grafana template to use the oscillation_state replacing oscillation_mode to report actual state, rather than the intended.
Going to close this out -- please let me know if you run into issues :)
Me Again :-)
Noticed an issue that present at a repeatable time of day, relating to the schedule feature of the V2 device.
Error: