@wutu thanks for sharing.
Now I have espeasy on the nodemcu. mqtt is running on the nodemcu. Now I will see the way to send and receive mqtt notifications on pimatic. š
On tasmota is the way easy at a internal console.
But I will read and test it.
-
New plugin pimatic-mqtt
"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)
-
Hi wutu,
can you remember to an error we discussed in the near past:Unhandled rejection Error: Expected variable sonnensensor.temp_high to have a numeric value. at /home/pi/pimatic-app/node_modules/pimatic/lib/variables-ast-builder.coffee:111:17 at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14) at processImmediate [as _immediateCallback] (timers.js:396:17)
Is there a chance that you will handle it?
-
Hey!
Wonderful plugin!
I have a question regarding using data from a sensor device in a rule.
Iāve set up a sensor (mqtt_temp) which grabs data from topic āTemp/Bad/ctrlā (bad_ctrl). Iād like to have a rule, that triggers, whenever the value changes. Only operators that i can see / that work are āequals, =>, >, etcā¦ā.
Is there a way to react to ANY change, not matter what it is?Like
When bad_ctrl of mqtt_temp changes then do ā¦Thanks in advance,
Greetings, Chris -
This might work.
{variable} changes or updatedWhen $variable changes Then bla bla
Follow my domotica project on http://maredana.nl
-
@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 ā¦
-
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)