Is it possible to look at event data when a device changes state please? I would like to understand or see the json data that occurs when for example, a binary_sensor turns on or off, which will help me build automations with variables.
Just using a simple example, I have the following binary_sensor:
binary_sensor:
- platform: ping
host: 192.168.1.10
name: "dsrv3msi"
If I create an automation to trigger a message when the state changes, I can look at the automation debug trace to see the from and to state changes in json:
However, how do I see this same information without using an automation? I gather this can be done within Developer Tools → Events, but I can’t figure out how.
How does “Listen to events” work? Can I specify an entity here? I see “Active listeners” on the right, so I tried entering “state_changed” as something to listen to, but nothing happened.
Thanks in advance.