Hello Guys, hope you can help me out.
I followed the Instrcutions in the [Video to set up Sonoff Tasmotize RF Bridge] (433mhz Sonoff RF Bridge using Tasmota and Portisch to scan Raw RF Codes for Zemismart Roller Shades - YouTube )
from DrZzs. The initial setup works, I can control my RF Plug with the new Commands over Home Assistant Services.
The Question now is, what do I have to do to set up an Entity with this Plug and call the mqtt events if I want to toggle the Plug?
Any Help is highly appreciated.
With best regards
tom_l
June 12, 2021, 4:39pm
2
Ideally you should create an mqtt switch:
Okay first of all thank you for your answer.
I defined the MQTT Switch like you suggested:
My goal now was to trigger an automation based on this switch condition (on/off) :
But now the Automation is not triggered, when I manually execute this specific automation, the plug switches to on like expected.
Any idea how to overcome this?
tom_l
June 13, 2021, 9:34am
4
Your switch has no state as you have no state feedback from the switch (hence the two lightning bolt icons rather than a toggle ).
If you add optimistic: true
to your switch config it should work.
However, if you control the switch by any other method than from Home Assistant (a button on the plug for example) the state will get out of sync with that in Home Assistant.
Okay, any idea how to overcome the sync problem or is this final?
tom_l
June 13, 2021, 11:38am
6
Your plug would need to provide sate feedback.
how do I check if the plug sends feedback? (Im afraid it does not but i hope so)
In the console there are multiple Entries but with /RESULT?
EKC
June 13, 2021, 11:54am
8
Perhaps you could get some useful information by monitoring the topic with MQTTBox: MQTTBox - Chrome Web Store