I don’t mean to hijack a thread, but I have been working thru some similar issues with Hue myself. With the coding above, would a ‘change’ in battery level be reported back as an ‘event’ by these sensors?
It would drive a state change in these template sensors the next time that the Hue system sent through a new data set. You could use that to trigger an automation if you wanted to.
I guess that is my point. Those ‘state changes’ would not be automatic, since i don’t believe the Hue device reports back to HA. But HA does apparently ‘poll’ or check temperature and Lux level periodically, since a chart appears for the in the ‘History’ screen at the bottom.
that has been changed with this edition / update! HUE now pushes state changes, and they are immediate. which is a huge improvement and we’ve all been looking out for that.
yes, it is a template sensor, just like the others. It is the legacy format, and if you dont have that yet (you copied the new format template: above), you also need the sensor: key as I showed here Philips Hue Motion Sensor Battery Level - #7 by Mariusthvdb
I would advise you to start understanding what you are doing, and read some documentation. Start with the configuration.yaml and template: documentation. this is all very basic, and you should try to grasp it for your own sake
How does one now take advantage of this? Is there a specific area in the documentation? Since I believe what I currently have for Hue is a ‘hack’ I came up with, I’d like to understand how the new feature works.
all is done in the backend, and makes HUE integration push its changes, where before HA needed to poll every 5 seconds. This means all changes now are immediate, and known to HA.
You don’t need to do anything.
You can catch the HUE events and use these in automations. Before, they could be not responsive enough for motion sensor automations, or remote switch button pushes. These will now act swiftly, so you can actually use them
if you want more info, check the YouTube release party video, where Paulus talks about this at the start
From what I can tell, it looks to me like the only thing that changed is the ‘motion’ detection is now pretty much instantaneous. Unfortunately I do not make use of the motion detection feature.
well, there’s more to life than you can tell… just try the color wheel on a HUE light, it’s instantaneous now.
As I explained above, HUE integration went from HA Poll to HUE Push, which is huge and effective throughout the full integration.
I’m trying to understand it, but for that I really need to read more I understand the concepts of legacy and new template format. But I still don’t quite understand where and how to rewrite this.
I have now pasted the above code into configuration.yaml. The code has been validated but I don’t see any change in my temperature. What can I do?
check the entity_id… and name for that matter
simply name it Temperature calibration and the system will add the slug ( _ ) and create the entity id as desired
honestly, I never use the UI for creating entities, and write all yaml: