It is in the newest release. And for the most part it is not typically required. My use case was an MQTT message that needed more parsing than could really be done in yaml so was better to pass the whole thing to an appdaemon app.
Yes that is what I am talking about. I have external events (pushed buttons in this case that enter HA through different protocols) which I want to convert into HA-events. I have a strong background in event processing and erlang and it feels wrong for me to convert events into state just to then react to the state changes which are again events.
OK so there are people who get my idea.
Sadly my python knowledge is next to zero so I do not completely understand the source.
One more question: Are
event_data:
state: false
and
event_data: {"state": false}
equivalent or two completely different things?
Hint: A yes would make me happy, otherwise I still didn’t get the concept.
How are you going to react to these events? Are you using appdaemon?
And no, they are not the same. First one you are sending a python dict, second one sends a string that contains some json. So, I have an automation like this:
And this is what I receive in appdaemon. You can see topic shows up as a python dict (single quotes) and payload is also a dict member which contains a json formatted string.