@incmve that was my first approach, but as far as i understand, there’s no variable provided by this device … at least there’s none suggested when creating a new rule …
-
New plugin pimatic-mqtt
-
Hi all.
@sirhc Thx, I’m glad you like the plugin.@sirhc said in New plugin pimatic-mqtt:
that was my first approach, but as far as i understand, there’s no variable provided by this device … at least there’s none suggested when creating a new rule …
This is very strange. Can you send a config device?
@OrTiN Can you please create issues? I do not remember it exactly.
Pimatic = Smart Home
-
{ "attributes": [ { "name": "badctrl", "topic": "Temperatur/Bad/ctrl", "type": "string", "messageMap": {} } ], "xAttributeOptions": [], "id": "mqtt_temp", "name": "Thermostat Temp", "class": "MqttSensor" }, `
I’ve used the graphical frontend to create. If i send messages to topic “Temperatur/Bad/ctrl” the device gets updated and displays the corresponding value.
-
@sirhc This rule works for me.
{ "id": "variable-change-test", "name": "variable change test", "rule": "when $mqtt_temp.badctrl changes then log \"the variable has been changed\"", "active": true, "logging": true }
Pimatic = Smart Home
-
@wutu i deleted the device and set it up freshly. Even if the config section now absolutely is the same for this device, now i get “$mqtt_temp.badctrl” suggested when trying to create that rule …
I don’t get the error, but now it seems to work. Thanks a lot -
@wutu
Thanks, your tips has helped me. However, unfortunately, I still lack something around this is aimed at reaching.
Like it looks the required Plugin does not exist in the proficient product. Which Plugin do I need for it? How can I install it?
I mean with it Plugin for espeasy and how to install it?"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@thrusty said in New plugin pimatic-mqtt:
I mean with it Plugin for espeasy and how to install it?
Hi, One option is MQTT. Although older, but mostly valid: https://forum.pimatic.org/topic/1367/espeasy-with-pimatic-over-mqtt
Pimatic = Smart Home
-
@wutu
Hello, I’m afraid you misunderstood me. I mean the plugin for ESPEasy. So in ESPEasy. If I define a device as Neopixel Basic, then I cannot choose a controller for it. This option is only available with Neopixel Candel."Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@thrusty said in New plugin pimatic-mqtt:
If I define a device as Neopixel Basic, then I cannot choose a controller for it. This option is only available with Neopixel Candel.
Which ESPEasy version do you use? Neopixel works well in version 2.x.x (mega branch).
Pimatic = Smart Home
-
@wutu Hello, I have downloaded this firmware version:
Build: 20000 - Mega
As already written I can select the controller under the Neopixel Candle Plugin.
If I want to make the settings for the Neopixel Basic Plugin, I don’t have the possibility to choose a controller.
No possibility to select the controller.
Is there anything else to look out for?"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@thrusty said in New plugin pimatic-mqtt:
If I want to make the settings for the Neopixel Basic Plugin, I don’t have the possibility to choose a controller.
This device did not send any data to the controller. It’s not a sensor. Only through the controller listens to the commands.
Pimatic = Smart Home
-
Oh, I didn’t know that.
What should the topic look like then?
Maybe like this:/ESP_Easy/neo/
And what next?
Like this for example?{ "brokerId": "192.168.178.22", "topic": "/ESP_Easy/neo/", "onMessage": "neopixelall,200,200,200", "offMessage": "neopixelall,0,0,0", "echo": { "additionalNames": [] },
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@thrusty said in New plugin pimatic-mqtt:
And what next?
You can try with command:
mosquitto_pub -t /ESP_Easy/neo -m 'neopixelall,10,10,10'
Like this for example?
Yep
Pimatic = Smart Home
-
@wutu said in New plugin pimatic-mqtt:
mosquitto_pub -t /ESP_Easy/neo -m ‘neopixelall,10,10,10’
I can’t get it to work.
With the command:
mosquitto_sub -d -d -v -t \#
I see the reception of the
mosquitto_pub -t /ESP_Easy/neo -m' neopixelall, 255,255,255'
.I receive the following:
Client mosqsub|11334-rpi_strec received PUBLISH (d0, q0, r0, m0, '/ESP_Easy/neo', ... (23 bytes))
/ESP_Easy/neo neopixelall,255,255,255
But no reaction to the LEDs.
I tested it again with the candle plugin. Then the LEDs react. Blink, whatever.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@thrusty said in New plugin pimatic-mqtt:
/ESP_Easy/neo neopixelall,255,255,255
You used the example wrong. The command is:
/ESP_Easy/cmd neopixelall,255,255,255Pimatic = Smart Home
-
@wutu Thank you for your help and patience.
I finally made it today.
Here is my setting for the device:"brokerId": "192.168.178.22", "topic": "/ESP_Easy/neo/cmd", "onMessage": "NeoPixel,5,0,50,0", "offMessage": "NeoPixel,5,0,0,0", "echo": { "additionalNames": [] }, "id": "ws2812", "name": "ws2812", "class": "MqttSwitch" },
And setting the number of LEDs is also important.
Only as many LEDs light up as you have specified."Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@thrusty said in New plugin pimatic-mqtt:
“topic”: “/ESP_Easy/neo/cmd”
I’m glad it works. Btw, “neo” in your topic is ignored by ESPEasy.
Pimatic = Smart Home
-
@wutu
Hello again, now I’ve come this far. Apart from the fact that my nodemcu has been smoked because an ordered display (i2c 2004) was soldered incorrectly.
Anyway, how can I add a backslash to a rule? I always get an error message when I want to save the rule.
As an example, like yours:"when every 10 seconds and if $coal-level-simple-truncated-mean.coal-level-simple-truncated-mean > 50 and if $coal-level-simple-truncated-mean.coal-level-simple-truncated-mean < 65 then publish mqtt message **\**"neopixel,8,40,0,40**\**" on topic \"mh/gf/lab/wd1mini-9/cmd\" and after 2 seconds publish mqtt message **\**"neopixel,8,0,0,0\" on topic \"mh/gf/lab/wd1mini-9/cmd\""
I have, of course, adapted all the settings to my circumstances.
As soon as I insert a backslash in a Rule I get an error message."Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@thrusty said in New plugin pimatic-mqtt:
Anyway, how can I add a backslash to a rule? I always get an error message when I want to save the rule.
Hi, this is directly from the config file. You do not specify a backslash over the GUI.
Pimatic = Smart Home
-
@wutu
And now I’d like to get back to you,
I tried to run the command over a rule:"rule": "when kontakt-bad is opened then set mode of therm-bad to \"manu\" and set temp of therm-bad to 10 after 2 seconds publish mqtt message \"neopixel,6,10,0,0\" on topic \"node1/cmd\"",
Pimatic deactivates the rule after restarting. I guess there’s another mistake in there somewhere.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)