I’ve got a plug ‘gosund_tasmota6’ that I want to control, and I can do it with publish and subscribe nodes with the topic ‘gosund_tasmota6/cmnd/tasmota/POWER’, with a payload of ‘on’ or ‘off’.
It works OK, but I want to say that the plug is in (say) the kitchen, so I changed the topic in the publish and subscribe nodes to: 'kitchen/gosund_tasmota6/cmnd/tasmota/POWER - but it doesn’t work (with no connection). Can anyone explain why, please?
Jim
Did you change the topic/subscribe paths in your Tasmota device as well? Changing them in NodeRed merely tells NodeRed where to publish and subscribe to, but if you haven’t setup those topics in your Tasmota device, then it won’t publish and subscribe to them.
Nope. Basically any device that supports MQTT can be used in both HA and NodeRed. It’s just a matter of knowing the topic structure the device uses in MQTT and then configuring HA and/or NodeRed appropriately.
I have a bunch of mini d1 type esp8266 boards running espeasy that is setup for mqtt.
I like espeasy because it has built in support for lots of different sensors and interface chips. Have them connected to relays to control sprinklers and my pool equipment. Also with reed switches (same as used for home alarms) to detect if garage door or garage freezer door is open. And a temp sensor for pool water temp.
Tasmota may be able to do the same type of thing, since I have it working with espeasy never tried with Tasmota.
Honestly, I don’t think Tasmota is nearly as easy to setup like that (part of the reason we have projects like espeasy and esphome is due to how Tasmota works).
ESPHome would be my highest recommendation. It uses YAML for it’s configuration (so, much akin to HA’s own config files) and then, once deployed, tightly integrates with HA natively.
Call me Bill (I guess I should add that to my profile one of these days).
Depends on the hardware you have around, but if you have something like a basic ESP8266 board (like a Sonoff Basic or something), try flashing that from the cookbook: DIY Examples — ESPHome
That’s what I started with. There’s a post in there from @frenck on how to create a cheap $2 doorbell that I still have on my back door.