Jump to content

RYSE Node Server Enhancement


Go to solution Solved by bpwwer,

Recommended Posts

Posted

Hi @bpwwer,

1. Would it be possible to extend the number of characters the node server will accept for the shade name?

Since I have bridges at two locations, my naming convention includes the location + the room the shade is located in. Currently, I have a shade name that is being abbreviated. I am shy 3 characters.

 

2. I created a program that sets the shade speed and the position of the shade. Currently, in order to do this, you need to list 2 "Set Shade" commands, one for speed and one for position.

When you copy the program, it looks like this:

DR Shade Closed - [ID 0055][Parent 0050]

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Set 'Noyac Dining Room Sh' Set Shade
        Set 'Noyac Dining Room Sh' Set Shade
 
Else
   - No Actions - (To add one, press 'Action')
 
First set shade sets speed to 85%.
Second set shade sets position to 100%.
 

 

With the current configuration there is no way to see what the set shade command is doing. Is there any way to enhance this so the full command is shown?

  • Solution
Posted

I can't do anything about #1, that is a limitation of what the IoX will accept for node names.

I can fix #2.  I'll change it so that it looks like:

 

image.png.31934e7f4ffd5602e076f5999ab180e7.png

This also changes the drop down so that the options are "Set Shade Position" and "Set Shade Speed" instead of both being just "Set Shade".

Posted
2 hours ago, bpwwer said:

I can't do anything about #1, that is a limitation of what the IoX will accept for node names.

I can fix #2.  I'll change it so that it looks like:

 

image.png.31934e7f4ffd5602e076f5999ab180e7.png

This also changes the drop down so that the options are "Set Shade Position" and "Set Shade Speed" instead of both being just "Set Shade".

That would be great, thanks.

Posted

I updated the node server this morning and then updated my programs for the new format. Now, none of the programs will run, including a new one I created just to test.

I am seeing the following in the log:

KeyError: 'POSITION.uom51'
2023-06-19 10:52:13,600 Command    udi_interface.interface ERROR    interface:_handleInput: _parseInput: failed c702e129edd7.runCmd(SET_POSITION) 'POSITION.uom51'
Traceback (most recent call last):
  File "/var/polyglot/pg3/ns/000db952c01c_7/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 889, in _handleInput
    self.nodes_internal[item['address']].runCmd(item)
  File "/var/polyglot/pg3/ns/000db952c01c_7/.local/lib/python3.9/site-packages/udi_interface/node.py", line 166, in runCmd
    fun(self, command)
  File "/var/polyglot/pg3/ns/000db952c01c_7/ryse.py", line 69, in position
    new_position = cmd['query']['POSITION.uom51']
KeyError: 'POSITION.uom51'

 

Posted

Sorry about that, I didn't realize that the change I made would also effect the code.  It should be fixed now in 1.0.2

Posted

No worries, but there looks like there is still an issue. While the shades no work, it is throwing an error.

2023-06-19 13:14:22,003 MQTT       udi_interface.interface INFO     interface:_message: Successfully set c702e129edd7 :: GV0 to 50 UOM 51
2023-06-19 13:14:22,003 MQTT       udi_interface.interface INFO     interface:_message: Successfully set c702e129edd7 :: GV0 to 50 UOM 51
2023-06-19 13:14:25,542 Thread-57  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:25,542 Thread-57  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:30,552 Thread-59  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:30,552 Thread-59  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:35,580 Thread-61  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:35,580 Thread-61  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:40,227 Command    udi_interface      INFO     ryse:speed: set shade speed {'address': 'c702e129edd7', 'cmd': 'SET_SPEED', 'value': '85', 'uom': '51', 'query': {}}
2023-06-19 13:14:40,227 Command    udi_interface      INFO     ryse:speed: set shade speed {'address': 'c702e129edd7', 'cmd': 'SET_SPEED', 'value': '85', 'uom': '51', 'query': {}}
2023-06-19 13:14:40,327 Command    udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:40,327 Command    udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:40,330 Command    udi_interface      INFO     ryse:position: set shade position {'address': 'c702e129edd7', 'cmd': 'SET_POSITION', 'value': '0', 'uom': '51', 'query': {}}%
2023-06-19 13:14:40,330 Command    udi_interface      INFO     ryse:position: set shade position {'address': 'c702e129edd7', 'cmd': 'SET_POSITION', 'value': '0', 'uom': '51', 'query': {}}%
2023-06-19 13:14:40,433 Command    udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:40,433 Command    udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:40,440 MQTT       udi_interface.interface INFO     interface:_message: Successfully set c702e129edd7 :: GV0 to 0 UOM 51
2023-06-19 13:14:40,440 MQTT       udi_interface.interface INFO     interface:_message: Successfully set c702e129edd7 :: GV0 to 0 UOM 51
2023-06-19 13:14:40,582 Thread-63  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:40,582 Thread-63  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:45,584 Thread-65  udi_interface      ERROR    ryse:query: query failed: 'speed'
2023-06-19 13:14:45,584 Thread-65  udi_interface      ERROR    ryse:query: query failed: 'speed'

 

Posted

Oops you must not have the updated firmware.  1.0.3 should handle that correctly now.

Posted
1 hour ago, bpwwer said:

Oops you must not have the updated firmware.  1.0.3 should handle that correctly now.

The SmartBridge firmware is listed as 1.5.1. I am on Android & there doesn't appear to be a way to upgrade firmware in the Android app yet.

Upgraded the node server and all is well know. Thanks!

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...