I’ve just set up my sonoff rf bridge with tasmota and portisch. Captures the codes perfectly.
If I send the RFRaw command through the tasmota command line directly they work perfectly.
If I try to use developer tools on HA nothing happens.
How can I create switches to send these commands? Am I missing the correct set up with mqtt publish addon?
mqtt.publish
topic: 'cmnd/tasmota_C0CDCD/RfRaw'
payload: 'RFRaw AA B0.....'
tasmota config:
MQTT Port 1883
MQTT User DVES_USER
MQTT Client DVES_C0CDCD
MQTT Topic tasmota_%06X
MQTT Group Topic 1 cmnd/tasmotas/
MQTT Full Topic cmnd/tasmota_C0CDCD/
Thanks.
ok I typed in ‘#’ in the listen field and clicked start listening.
Then I sent the command from tasmota command line from the browser which turned my switch on.
Sorry what and where was I supposed to see in HA? Did not see any messages.
Total newbie to mqtt at the moment.
On the same page where you clicked ‘Start Listening’.
If you saw nothing there, after publishing a payload from the Tasmota console, then Home Assistant is not connected to the MQTT Broker.
The # you entered represents a wild-card to subscribe to every topic handled by the MQTT Broker. If Home Assistant is connected to it, it will receive payloads published to every topic.
When it comes to understanding/debugging MQTT communications, I always suggest using an MQTT client like MQTT Explorer. Once connected to the broker, it can be used to publish payloads and subscribe to topics, while displaying all topics in an intuitive tree-view.
Sorry, can’t help you with Tasmota configuration (I don’t use it).
Strongly recommend you use MQTT Explorer to serve as your debugging tool. Unless you have the broker configured to accept anonymous connections, you will need to know the username and password to allow MQTT Explorer to connect to the broker. It can be the same as the one you used to connect the Tasmota-based device to the broker (but, ideally, should be a separate account).
Been tweaking the configs. The tasmota connects but then disconnects due to a socket error.
1599233576: New client connected from 192.168.1.47 as DVES_C0CDCD (p2, c1, k30, u'DVES_USER').
1599233578: Socket error on client DVES_C0CDCD, disconnecting.
1599233584: New connection from 192.168.1.47 on port 1883.
1599233584: New client connected from 192.168.1.47 as DVES_C0CDCD (p2, c1, k30, u'DVES_USER').
1599233652: New connection from 172.30.32.1 on port 1883.
1599233652: Socket error on client <unknown>, disconnecting.
another step. Solved the socket errors. also looks like its listening to tasmota now using the same users.
99235083: New client connected from 192.168.1.43 as Tasmota_mqtt_4bff1c20.91dc34 (p2, c1, k60).
[INFO] found mqttuseron Home Assistant
1599235084: New client connected from 172.30.32.1 as auto-4C3668EE-24D6-70E6-6C9F-DAE6ADB48A2B (p2, c1, k60, u'mqttuser').
BUT using the command lines from tasmota while listening still nothing is coming through to HA which is odd when looking at the logs for mqtt broker
Hi @yonny24 , I assume you have converted the B1 code to B0 before transmitting.
You are able to Transmit the code from Tasmota console and the receiving device reacts all good right?
Have you done any mods to the RF Bridge, ie have previously set it up to use ESPHome?
I was able to send rfraw command this way:
service: mqtt.publish
data:
topic: cmnd/tasmota_RF_Bridge/rfraw
payload: AA B0 17 04 08 01AZ 012A 02D0 39DA 38081A081A081A1A080A080A08 55;rfraw 0