Hello,
I am trying to read the system events, but my attempt so far ends in “Null”.
__context__.get("vehicle/motor/running")
I have seen that there is a “get_event” at Salt.
data = event.get_event(wait=10, tag="vehicle/motor")
But I have no idea on which “client_config” or event to set. The Example from Salt is:
import salt.config
import salt.utils.event
opts = salt.config.client_config('/etc/salt/master')
event = salt.utils.event.get_event(
'master',
sock_dir=opts['sock_dir'],
transport=opts['transport'],
opts=opts)
data = event.get_event()
I actually think it’s super simple but I don’t get it