This page last changed on Dec 10, 2014 by szejkindudi.


I have problem with feedback from my BMS gateway (want to control relay).
1) Create "switch power ON" command
2) Create "switch power OFF" command
3) Create sensor to visible change of state

Command "1" nad "2" working ok, but gateway response at this way:

send one command to gateway:
MyCommandToRealy=1 (send from controller)
response from gateway:
Gateway response change state from "0" to "1" and between change state send additional command keypress (this additional command is linked to physical key button in my additional control panel on the wall). If I check controller log, sensor catches first command "MyCommandToRelay=0" instead of "MyCommandToRelay=1" localized in the third line. Can i solve it and filter information?

If I properly understood the principle of the sensor it should read feedback in the form of "MyCommandToRelay=1" ?


I try to configure custom sensor like "inverse logic", because gateway first received "MyCommandToRelay=0" when I send "MyCommandToRealy=1" to "ON" but it not works, why?
In the command "get status" window I have "null|{$value{MyCommandToRelay=}}" and In the custom sensor window I have "name" to "ON" and "value" to "null|MyCommandToRelay=0".


Posted by szejkindudi at Dec 03, 2014 13:36

A wild guess: Have you tried ,lower case on/off ?

Posted by pz1 at Dec 04, 2014 11:18

Yes but still not working..
"on" command working but "off" command not - I have no feedback

Posted by szejkindudi at Dec 04, 2014 12:42

OK i checked again and now is working but not in 100 percent.
As I wrote in earlier post, gateway receiced two commands to confirmation "on" and two commands to confirmation "off" state. I put one of them to a sensor. In UI designer placed label which use sensor state. Switch sometimes not work and label show not inserted command but second of them e.g. I typed "keypress" command but label show "relay" and switch not work.
Second questions. My data bus is "blurr" and transmitted many other commands (like actual temperature) and if they appear label show these commands(and all other commands in my data bus) even though I placed "on" and "off" text in the label properties.
How Can i filter and fix and show only "match commands"?
As I see better way is to use two buttons than switch but sometimes user need real feedback information about state.

Posted by szejkindudi at Dec 07, 2014 00:59


Posted by szejkindudi at Dec 08, 2014 21:48
Document generated by Confluence on Jun 05, 2016 09:36