I want to send a message that is triggering an event from Home Assistant to EspEasy.
I set the Controller1 to Home assistant with the parameters as shows bellow. In the EspEasy rules I wrote following :
Code: Select all
On ha_start do
If [Lm_Shutter#State]=0 // shutter closed
gpio,0,0 // 1 = Open 0 = Close
TaskValueSet,7,1,0 // Position 0
TaskValueSet,8,1,0 // Internal Target Position 0
Publish %sysname%/State,'Fermé'
endif
endon
I tried without succes :
- Topic : Volet1/cmd=event Payload : ha_start (Volet1 is the %sysname%) Could you help please ?
Patou