Run event via MQTT
Posted: 12 Apr 2024, 04:15
My ESP is logged to MQTT broker correctly.
Home assistant properly receive values over this MQTT boker from sensors connected to this ESP.
It is also possible to view such values using "mosquitto_sub" command from CLI.
Question is how to send command via MQTT to run specific event defined in ESP rules.
Of course event has no define "Device".
I try such syntax which is not correct. So please help me to correct one.
Home assistant properly receive values over this MQTT boker from sensors connected to this ESP.
It is also possible to view such values using "mosquitto_sub" command from CLI.
Question is how to send command via MQTT to run specific event defined in ESP rules.
Of course event has no define "Device".
I try such syntax which is not correct. So please help me to correct one.
Code: Select all
mosquitto_pub -h localhost -t ESP_sysname/ -m "event_name"