I would like to share my google nest thermostat motion detection code.
This way motion can be detected by your google nest and for example lights can be turned on.
Make sure the nest ping is āonā for 25 seconds in order it not to be triggered by other connections it will make frequently. Change entityās to your own.
Agreed, this is wild. @Antaras does the 25 second delay imply that there is significant latency before motion is finally detected? So this is really more for non time sensitive use cases?
Not possible to configure ping binary_sensor by adding platform: ping to the binary_sensor configuration. Please check the documentation for more information on how to set up this integration.
To resolve this:
Remove platform: ping occurences from the binary_sensor: configuration in your YAML configuration file.
Restart Home Assistant.
Example that should be removed:
binary_sensor:
platform: ping
Also, when I create a new automation and try replacing the YAML code, I get this error:
Message malformed: extra keys not allowed @ data[ā0ā]
Am I doing something wrong? I donāt have any experience with YAML yet.
Awesome find! Been looking for something like this myself for some time.
I tried to set it up locally myself, but it seems the ping sensor is always showing as connected (or on, in your example).
My expectation is that this would flip on and off from your example automation. Anyone know if this still works? Iāve got the regular Nest Thermostat (shows as `Thermostat-1.4" in the Google Home App ā not the āThermostat Eā).
@Antaras does your integration still function today?