@dnl0319
You can run the command 'sudo /etc/init.d/mosquitto status’
When the status is ‘running’, you can configure pimatic and the device to use the broker. The url of the broker is the ip number of your pi (if you installed it there).
-
pimatic-mqtt@0.9.13
-
@bertreb said in pimatic-mqtt@0.9.13:
@dnl0319
You can run the command 'sudo /etc/init.d/mosquitto status’
When the status is ‘running’, you can configure pimatic and the device to use the broker. The url of the broker is the ip number of your pi (if you installed it there).Yes, Mosquito is running and I can add the Gosund smartplugs. Thank you for your help!
-
Hello everyone,
I have a problem with the godsend smart plugs. I hope some one can help me.
I have 3 samartplugs. one is flashed with Tasmota Version 6.6.0(release-sonoff) and two are flashed with Program Version 7.0.0.3(tasmota).The Plug with Version 6.6.0 works perfectly in pimatic. But the two plugs with Version 7.0.0.3 didn’t work. I can’t get them integrate to pimatic. topic is the same but no function.
I can connect on the webif and can switch them on and of but I can’t switch them via pimatic.
I have some one can help.
Thank you in advance.
-
If you don´t show your config, noone will be able to help…
-
@michael-rudek said in pimatic-mqtt@0.9.13:
If you don´t show your config, noone will be able to help…
Here the pimatic config for mqtt that I got.
{ "debug": true, "brokers": [ { "brokerId": "default" } ], "plugin": "mqtt", "active": true },
I’ve got mosquito running on my Pi aswell.
-
No
the config of the device that is not working.
One device works, two others not. We need the config of this devices. Not the config of the mqtt plugin. -
@michael-rudek said in pimatic-mqtt@0.9.13:
No
the config of the device that is not working.
One device works, two others not. We need the config of this devices. Not the config of the mqtt plugin.Gosund SP1 v23 Module Sonoff Program Version 7.0.0.3(tasmota) Build Date & Time 2019-11-06T23:07:19 Core/SDK Version STAGE/2.2.2-dev(38a443e) Uptime 0T00:10:37 Flash write Count 41 at 0xFB000 Boot Count 17 Restart Reason Power on Friendly Name 1 Sonoff AP1 SSId (RSSI) XXXX (100%) Hostname Test2 IP Address XXX.XXX.XXX.XXX Gateway XXX.XXX.XXX.XXX Subnet Mask XXX.XXX.XXX.XXX DNS Server XXX.XXX.XXX.XXX MAC Address XXX MQTT Host XXX.XXX.XXX.XXX MQTT Port 1883 MQTT User DVES_USER MQTT Client DVES_C9E338 MQTT Topic test2 MQTT Group Topic cmnd/tasmotas/ MQTT Full Topic cmnd/test2/ MQTT Fallback Topic cmnd/DVES_C9E338_fb/ Emulation Disabled mDNS Discovery Disabled ESP Chip Id 13230904 Flash Chip Id 0x144051 Flash Size 1024kB Program Flash Size 1024kB Program Size 446kB Free Program Space 556kB Free Memory 29kB
I’m not sure if this is enough because I tried to finde a cfg file but I couldn’t find anything.
-
This is the config of Tasmota…
We need the config in Pimatic.
Like:"topic": "cmnd/Bad/Power", "id": "bad", "name": "Lüfter Badezimmer", "class": "MqttSwitch", "onMessage": "ON", "offMessage": "OFF", "stateTopic": "stat/Bad/POWER", "xOnLabel": "An", "xOffLabel": "Aus" },
-
@michael-rudek said in pimatic-mqtt@0.9.13:
This is the config of Tasmota…
We need the config in Pimatic.
Like:"topic": "cmnd/Bad/Power", "id": "bad", "name": "Lüfter Badezimmer", "class": "MqttSwitch", "onMessage": "ON", "offMessage": "OFF", "stateTopic": "stat/Bad/POWER", "xOnLabel": "An", "xOffLabel": "Aus" },
Okay, haha sorry. Now I know what you mean. Here you go.
{ "brokerId": "default", "topic": "cmnd/rig/POWER1", "onMessage": "on", "offMessage": "OFF", "stateTopic": "stat/rig/POWER1", "id": "rig", "name": "Rig", "class": "MqttSwitch", "xConfirm": true },
-
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
-
@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!