Triggering a zigbee device

Posted on
Fri Oct 28, 2022 8:43 am
lazlohollyfeld offline
Posts: 52
Joined: Jan 09, 2012

Triggering a zigbee device

Does anyone have any examples of triggering a zigbee device to do [something]?

I've got a bunch of leak sensors working and set-up, now I want to send an on or off message to a water valve.. The water valve is currently being read - just can't get it to do anything!

I've been trying different things and looked thru the board but can't seem to find any good examples..

thanks in advance!

Posted on
Fri Oct 28, 2022 1:05 pm
tazswe offline
Posts: 211
Joined: Mar 13, 2017
Location: Sweden

Re: Triggering a zigbee device

How are you communicating with the zigbeedevices?

I use mqtt connector and mqttshims and it’s working great.


Sent from my iPad with Tapatalk

Posted on
Fri Oct 28, 2022 1:13 pm
lazlohollyfeld offline
Posts: 52
Joined: Jan 09, 2012

Re: Triggering a zigbee device

sorry - i thought that was obvious as I posted in this board :)

yes - reading is no problem - I have it all worked out with this MQTT plugin & shims.. Now I am trying to figure out how to send an action to a zigbee device... There are a lot of examples for reading from devices in this board - but I haven't been able to find anything for sending actions..

thanks!

Posted on
Fri Oct 28, 2022 1:14 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Triggering a zigbee device

Do you know the topic and payload you need to send to get the action you want?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Oct 28, 2022 3:47 pm
tazswe offline
Posts: 211
Joined: Mar 13, 2017
Location: Sweden

Re: Triggering a zigbee device

Image

As an exempel, this is my devicesettings for a simple power on/off device. If you get this right you can trigger it on and of like a normal device.

Image
This is how it looks in mqtt Explorer.

Not sure about the settings for your device but you can most probably find it here.

https://www.zigbee2mqtt.io/supported-devices/


Sent from my iPad with Tapatalk

Posted on
Sun Oct 30, 2022 11:10 pm
lazlohollyfeld offline
Posts: 52
Joined: Jan 09, 2012

Re: Triggering a zigbee device

thanks for the quick response!

No luck based on your example..

here is my setup - no problem reading the device - and I can trigger to open/close via the zigbee2mqtt app, so I know it works.. Do I need to modify any of the device/variable control settings in the broker device?
Attachments
example.jpg
example.jpg (428.27 KiB) Viewed 1892 times

Posted on
Mon Oct 31, 2022 2:26 am
tazswe offline
Posts: 211
Joined: Mar 13, 2017
Location: Sweden

Re: Triggering a zigbee device

Did you find your device here?

https://www.zigbee2mqtt.io/supported-devices/


Sent from my iPad with Tapatalk

Posted on
Mon Oct 31, 2022 8:59 am
lazlohollyfeld offline
Posts: 52
Joined: Jan 09, 2012

Re: Triggering a zigbee device

Yes - no problems with reading it - only controlling it.

Here is my valve:
https://www.zigbee2mqtt.io/devices/TS01 ... 0111-valve

Thx

Posted on
Mon Oct 31, 2022 9:24 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Triggering a zigbee device

Clear the MQTT Explorer memory, sent the command to control the device from zigbee2mqtt, then show what Explorer sees.

Better yet, enable logging on the MQTT Connector and show the Indigo log.

We need to see EXACTLY what's getting sent to the device that's controlling it. That's very hard to do with MQTT Explorer.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Oct 31, 2022 11:01 am
lazlohollyfeld offline
Posts: 52
Joined: Jan 09, 2012

Re: Triggering a zigbee device

see attached screenshots - lmk if I missed anything..

re: Clear the MQTT Explorer memory
- i cleared the topic histories from the relevant devices - not sure if thats what you were looking-for...?

In order to test from indigo - i've been using the "Turn On" and "Turn Off" buttons on the device in indigo - assuming that's correct...

thanks!
Attachments
debug_log_2.png
debug_log_2.png (133.71 KiB) Viewed 1814 times
debug log.png
debug log.png (110.51 KiB) Viewed 1816 times
mqtt.jpg
mqtt.jpg (195.48 KiB) Viewed 1816 times

Posted on
Mon Oct 31, 2022 11:30 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Triggering a zigbee device

Cut and paste the log. Never do screen shots of the log.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Oct 31, 2022 11:32 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Triggering a zigbee device

I thought you said you could control the device from the zigbee2mqtt app. I need to see the connector logs when you do that (not from the plugin). If that works.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Oct 31, 2022 11:36 am
lazlohollyfeld offline
Posts: 52
Joined: Jan 09, 2012

Re: Triggering a zigbee device

hopefully this is what you need -
I went into zigbee2mqtt,
opened the device
went to "exposes"
clicked on on/off

here is the log from indigo:
Code: Select all
Oct 31, 2022 at 1:34:06 PM
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload = {"linkquality":87,"state":"OFF"}
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload: {"linkquality":87,"state":"OFF"}
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload: {"linkquality":87,"state":"OFF"}
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload = OFF
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload: OFF
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload: OFF
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload = 87
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload: 87
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload: 87
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload = {"linkquality":90,"state":"OFF"}
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload: {"linkquality":90,"state":"OFF"}
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload: {"linkquality":90,"state":"OFF"}
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload = OFF
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload: OFF
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload: OFF
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload = 90
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload: 90
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload: 90
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload = {"linkquality":99,"state":"ON"}
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload: {"linkquality":99,"state":"ON"}
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload: {"linkquality":99,"state":"ON"}
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload = ON
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload: ON
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload: ON
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload = 99
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload: 99
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload: 99
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload = {"linkquality":99,"state":"ON"}
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload: {"linkquality":99,"state":"ON"}
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF, payload: {"linkquality":99,"state":"ON"}
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload = ON
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload: ON
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state, payload: ON
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload = 99
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: processReceivedMessage: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload: 99
   MQTT Connector Debug            NEW Zigbee2MQTT Connection: Saved states, topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/linkquality, payload: 99
   MQTT Connector Debug            Receive Sav Water Sensor: type = topicMatch, broker = 1820104977
   MQTT Connector Debug            UTILITY_DEVICES: type = topicMatch, broker = 1820104977

Posted on
Mon Oct 31, 2022 11:43 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Triggering a zigbee device

Try setting up actions for the connector that has these settings:

Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state
payload = ON

and

Message topic: zigbee2mqtt/UTILITY_DEVICES/MAIN_WATER_SHUTOFF/state
payload = OFF

Do they control the device?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Oct 31, 2022 11:47 am
lazlohollyfeld offline
Posts: 52
Joined: Jan 09, 2012

Re: Triggering a zigbee device

thanks a TON for your responsiveness - i'll have to do that tonight (some of us don't yet hold the distinction of "Retired Computer and Network Geek" :) )

Who is online

Users browsing this forum: No registered users and 5 guests