Is this the same device?
The Tasmota config shows test2
, the Pimatic shows rig
.
On- and Off Message has to be in capital letters. ON
not on
Is this a multiple device? Then POWER1
is correct.
A single device uses just POWER
-
pimatic-mqtt@0.9.13
-
@michael-rudek said in pimatic-mqtt@0.9.13:
Is this the same device?
The Tasmota config showstest2
, the Pimatic showsrig
.
On- and Off Message has to be in capital letters.ON
noton
Is this a multiple device? ThenPOWER1
is correct.
A single device uses justPOWER
No it is not the same device as above.
{ "brokerId": "default", "topic": "cmnd/test2/POWER1", "onMessage": "on", "offMessage": "OFF", "stateTopic": "stat/test2/POWER1", "id": "test2", "name": "test2", "class": "MqttSwitch", "xConfirm": true },
I use the same config for „rig“ as for „test2“. I just change the topic.
Okay I will try that with capital letters. But why does this work on the other smartplug with the version 6.6.0. Does this has been changed in the newer version?
No I don’t think it is an multiple device. It is just one smart plug. Okay I will change this.
-
@michael-rudek said in pimatic-mqtt@0.9.13:
Is this the same device?
The Tasmota config showstest2
, the Pimatic showsrig
.
On- and Off Message has to be in capital letters.ON
noton
Is this a multiple device? ThenPOWER1
is correct.
A single device uses justPOWER
Okay I tried to use capital letters for ON and OFF. Also I changed POWER1 to POWER but also no change. I can’t switch the plug thru pimatic.
-
@dnl0319 do yo have a possiblity to test the smartplug via a mqtt emulator? MQTT.fx or the mosquitto tool or any… This is the easiast way to test and play with the commands towards the smartplug. The mqtt broker will be in the middle, but that should be transparant.
Btw why would you move to tasmota 7 if 6 already works? -
@bertreb said in pimatic-mqtt@0.9.13:
@dnl0319 do yo have a possiblity to test the smartplug via a mqtt emulator? MQTT.fx or the mosquitto tool or any… This is the easiast way to test and play with the commands towards the smartplug. The mqtt broker will be in the middle, but that should be transparant.
Btw why would you move to tasmota 7 if 6 already works?If you give me advice how to do this with a mqtt emulator? I’ve never done this.
I’ve had the one with version 6.6.0 already and bought new ones and friend of mine flashed the smart plugs with version 7.0.0.3.
-
@dnl0319 you could ask your friend to reflash with version 6.6.0
For a mac you can use MQTT.fx. On your pi you can use the mosquitto_pub etc commands. One of the mqtt tool overviews
For example on the mosquitto site your can find the mosquitto_pub manual. Or enough internet how-to’s on this. -
Hi,
i run under windows MQTT.fx
Connect to your mqtt-Server, press Subscribe with a duble klick on your favourite can you play!a Sonoff plug S26 with Tasmota in Pimatic
this SonOff plug S26 in Tasmota
Pimatic, my hobby.
-
Is MQTT activated in your devices?
You can find the “Hook” in Settings — other Settings (maybe its called different / translated from German Language).Can you see anything MQTT related in the Console?
Like:
23:19:52 MQT: stat/sonoff6/RESULT = {"POWER":"ON"}
23:19:52 MQT: stat/sonoff6/POWER = ON
-
This post is deleted!
-
It worked. I look in the console of the smartplug and there was this:
20:40:32 MQT: Attempting connection... 20:40:38 MQT: Connect failed to 192.168.178.32:1883, rc -2. Retry in 10 sec 20:40:47 RSL: stat/test2/RESULT = {"POWER":"ON"} 20:40:47 RSL: stat/test2/POWER = ON 20:40:48 RSL: stat/test2/RESULT = {"POWER":"OFF"} 20:40:48 RSL: stat/test2/POWER = OFF 20:40:48 MQT: Attempting connection... 20:40:54 MQT: Connect failed to 192.168.178.32:1883, rc -2. Retry in 10 sec 20:41:04 MQT: Attempting connection... 20:41:10 MQT: Connect failed to 192.168.178.32:1883, rc -2. Retry in 10 sec
And I was like, am no this is not my host.
I had the wrong IP. I’m sorry for the inconvenience!
Thank you anyway for your help!