Updating device status?

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
stejp96
Posts: 3
Joined: 23 Oct 2014 20:30

Updating device status?

Post by stejp96 »

I need a way to check the device status. If it is activated or not. Because I have a relay that I activate with a switch, but the UI wont recognize that the relay is activ. How to I do this? Im guessing that I need a bit of javascript code that loops in the background?

Thanks.
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Re: Updating device status?

Post by PoltoS »

Most of devices do send an unsolicited report on status changes, so you just need to put RaZberry in the corresponding Association group.

If yours does not support unsolicited reports, do periodical polling. There is a module for this in HA UI. Or you acn do it with a bit of JS.
stejp96
Posts: 3
Joined: 23 Oct 2014 20:30

Re: Updating device status?

Post by stejp96 »

Do you know how I can do this? Im kinda new to Z-wave and RaZberry. And the polling is only for sensors and such, isnt it?
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Re: Updating device status?

Post by PoltoS »

There is a sensor polling module in new HomeAutomation UI
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Updating device status?

Post by pz1 »

PoltoS wrote:Most of devices do send an unsolicited report on status changes, so you just need to put RaZberry in the corresponding Association group.
I do have RaZberry in all association groups of my Zwave>me switches as shown below. Still device statuses are not updated in the Old Blue interface, nor in the Home Automation windows after manual changes of the switch. This behaviour is the same in 2.0.0-rc8 and 1.7.2
Association.PNG
Association.PNG (83.04 KiB) Viewed 5646 times
PoltoS wrote:If yours does not support unsolicited reports, do periodical polling. There is a module for this in HA UI. Or you acn do it with a bit of JS.
This periodical polling does not support binary switches!!

PS: There is a funny "ghost" Device 62 in association group 1 that I can not get rid off. After removing it in the Expert commands, it seems it has gone, but after a while it re-appears.
Since 29-12-2016 I am no longer a moderator for this forum
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Updating device status?

Post by pz1 »

Only one of my seven Zwave.me binary switches seems to send these unsolicited status updates.
Below are the interview results for device 3, that is shown in the previous post.

Code: Select all

/: None (Tuesday, 11 February 16:10)
basicType: 4 (Saturday, 1 November 10:51)
genericType: 16 (Saturday, 1 November 10:51)
specificType: 1 (Saturday, 1 November 10:51)
infoProtocolSpecific: 13868032 (Saturday, 1 November 10:51)
deviceTypeString: Binary Power Switch (Saturday, 1 November 10:51)
isVirtual: false (Tuesday, 11 February 16:10)
isListening: true (Saturday, 1 November 10:51)
isRouting: true (Saturday, 1 November 10:51)
isAwake: true (Friday, 31 October 08:39)
optional: true (Saturday, 1 November 10:51)
isFailed: false (Saturday, 1 November 10:51)
beam: false (Tuesday, 11 February 16:10)
sensor250: false (Saturday, 1 November 10:51)
sensor1000: false (Saturday, 1 November 10:51)
neighbours: 1,5,6,17,19,20,21,22,23,24,25,43 (Saturday, 1 November 10:51)
manufacturerId: 277 (10:15)
vendorString: Z-Wave.Me (10:15)
manufacturerProductType: 4096 (10:15)
manufacturerProductId: 1 (10:15)
ZWLib: 6 (10:16)
ZWProtocolMajor: 3 (10:16)
ZWProtocolMinor: 22 (10:16)
SDK: 4.52.01 (10:16)
applicationMajor: 1 (10:16)
applicationMinor: 6 (10:16)
nodeInfoFrame: 32,37,39,112,117,134,114,133,142,135,119 (Saturday, 10 May 16:12)
ZDDXMLFile: 144-0115-1000-0001-06-03-16-01-06.xml (10:15)
lastSend: 33613901 (10:17)
lastNonceGet: None (Saturday, 1 November 10:18)
lastReceived: 0 (10:17)
failureCount: 0 (Saturday, 1 November 10:18)
keepAwake: false (10:15)
countSuccess: 0 (Tuesday, 11 February 16:10)
countFailed: 0 (Tuesday, 11 February 16:10)
queueLength: 0 (Tuesday, 11 February 16:10)
givenName: (Sunday, 27 July 15:33)
What can be wrong with these devices. I did several Forced interviews at no avail.
Originally in version 1.3.1, all these switches did send unsolicited status updates when switches were manually changed
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply