garybixler Posted August 8, 2023 Posted August 8, 2023 Update on polling. The MCA C3, C5 do need to be polled in order to keep the connection alive for receiving status updates. Volume, Power, Source etc.. Thanks Gary
bpwwer Posted August 8, 2023 Posted August 8, 2023 2 hours ago, garybixler said: Update on polling. The MCA C3, C5 do need to be polled in order to keep the connection alive for receiving status updates. Volume, Power, Source etc.. Thanks Gary Ok, I'll add something to do that. Just the C3 and C5? How many different models do you have to test with?
garybixler Posted August 8, 2023 Posted August 8, 2023 I only have the C5 but polling wasn't necessary for the MCA-88. That was learned from the first RIO NS on PG2. So I am thinking that the C3, C5 being the first RIO devices my be the only ones requiring polling.
bpwwer Posted August 10, 2023 Posted August 10, 2023 I just pushed version 2.0.9. I added polling support. So now at the poll interval it will attempt to query the zone power status for all zones. The default interval is 60 seconds (short poll) but you can change that to whatever you think is best. I also updated the query support so that now if you query a zone, it should actually query the controller for the zone info and update that. I removed the source status from the main controller node. Now that chained controllers are supported, the number of sources is variable (and even with the RIO controllers, it varies) so having a fixed number of source states there doesn't make sense. I could attempt to make that dynamic, but that's not easy with the way IoX nodes are defined and I'm not sure it's all that valuable. I could also create a node for each source, which might make more sense as with RIO there's more source info available. Let me know if you have any thoughts.
garybixler Posted August 10, 2023 Posted August 10, 2023 (edited) Just loaded 2.0.9 but keep getting this log repeating. Not connecting. Thanks IndentationError: unexpected indent 2023-08-10 17:36:19,745 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-08-10 17:36:20,447 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.1.0 Starting... 2023-08-10 17:36:20,461 MainThread udi_interface ERROR udi_interface:write: Traceback (most recent call last): File "/var/polyglot/pg3/ns/0021b9026038_16/russound.py", line 9, in <module> from nodes import control File "/var/polyglot/pg3/ns/0021b9026038_16/nodes/control.py", line 15, in <module> from nodes import russound File "/var/polyglot/pg3/ns/0021b9026038_16/nodes/russound.py", line 673 ''' IndentationError: unexpected indent 2023-08-10 17:36:21,641 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-08-10 17:36:22,345 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.1.0 Starting... 2023-08-10 17:36:22,359 MainThread udi_interface ERROR udi_interface:write: Traceback (most recent call last): File "/var/polyglot/pg3/ns/0021b9026038_16/russound.py", line 9, in <module> from nodes import control File "/var/polyglot/pg3/ns/0021b9026038_16/nodes/control.py", line 15, in <module> from nodes import russound File "/var/polyglot/pg3/ns/0021b9026038_16/nodes/russound.py", line 673 Edited August 10, 2023 by garybixler
bpwwer Posted August 11, 2023 Posted August 11, 2023 Sorry, apparently with Python you can indent comments wrong. Try 2.0.10 1
garybixler Posted August 11, 2023 Posted August 11, 2023 Installed 2.0.10 and all looks good. Will check to make sure the connection is kept alive. So far it seems to be OK. Thanks so much. Gary
dbwarner5 Posted August 21, 2023 Posted August 21, 2023 Bob thank you!! I just got it loaded on my end. Appears to be working but will test further. I have a MCA-88... all zones recognized etc. Set up took a few trials.. Port is NOT designated in the RIO or my Router anywhere so tried 5000 and found that 9621 per Gary's set up worked. You may want to add that to the config info. Lastly, I had to go to the Russound set up page and change the protocol to RIO to get it to work. I use ethernet, not serial. Will keep you posted! thanks so much!
Pantheon Posted April 26 Posted April 26 I have been reading this thread with interest. I have been using the Telnet connection and RIO commands with my Russound MCA-C5 for some time now, with variable, but mostly accurate success. I am using webcore on Hubitat with a Hubitat telnet driver. I also found that the C5 needs polling to stay alive. I poll every 30 minutes. I just query with GET C[1].Z[3].mute. My problem is missed/ignored commands. Setting the volume and source of a zone and turning it on with sequential commands WITHOUT a wait time in between commands gives mixed results. Most of the time, the volume command gets ignored. I noticed above that you are using 5 second waits. I was able to trim that down to around 850 ms, but even that is sometimes problematic. I really thought that the Russound SHOUD be able to accept commands faster than 1-2 seconds per command. If I am turning on music throughout my whole house, it can take upwards of 30 seconds to get music to all rooms AFTER the Alexa command to turn on music. The WAF for that is low.
dbwarner5 Posted April 28 Posted April 28 The program you are referencing is a nighttime "cleanup" program to reset everything for the next day, so I used 5 seconds just to be safe as timing is irrelavant at 4am. However in my actual programs I use 1 second and it works fine as you can see below For turning it on, yes there can be a slight delay, but it's not really noticeable. And for turning it OFF, I use Alexa to Mute the music source (Alexa music dot line out to Russound) so that the music stops immediately, and then I take my time to turn off the zones. See second program below I also use a Remote Link to change the volume in the garage.. also works great. See third program. Overall, this is a GREAT NS with eh MCA-88.. have had no problems with it. TURN ON/OFF PROGRAM If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Set 'RussoundCtl_1 / Bedroom Sound' Zone On Wait 1 second Set 'RussoundCtl_1 / Kitchen Sound' Zone On Wait 1 second Set 'RussoundCtl_1 / Laundry Room Sound' Zone On Wait 1 second Set 'RussoundCtl_1 / Sunroom Sound' Zone On Else Set 'RussoundCtl_1 / Bedroom Sound' Zone Off Wait 5 seconds Set 'RussoundCtl_1 / Deck Sound' Zone Off Wait 5 seconds Set 'RussoundCtl_1 / Game Room Sound' Zone Off Wait 5 seconds Set 'RussoundCtl_1 / Kitchen Sound' Zone Off Wait 5 seconds Set 'RussoundCtl_1 / Laundry Room Sound' Zone Off Wait 5 seconds Set 'RussoundCtl_1 / Screened Porch Sound' Zone Off Wait 5 seconds Set 'RussoundCtl_1 / Sunroom Sound' Zone Off GARAGE MUSIC TURN ON. If 'RL Gararge- B Up Music On' is switched On Or 'RL Gararge- B Up Music On' is switched Off Then Repeat 2 times Set 'Garage Reciever' On Wait 1 second Repeat 1 times Set 'RussoundCtl_1 / Garage Sound' Zone On Wait 1 second Set 'RussoundCtl_1 / Garage Sound' Source Music A Wait 1 second Set 'RussoundCtl_1 / Garage Sound' Volume 30 dB Set 'Garage Chime' On for 2 seconds Wait 3 seconds $I_Rus_Garage_Volume = 'RussoundCtl_1 / Garage Sound' Volume dB Enable Program 'RL Music Off SD' Disable Program 'RL Music On SD' RL Music Vol up - [ID 02F4][Parent 0389] If 'RL Gararge- C Up Vol Up' is switched Off Or 'RL Gararge- C Up Vol Up' is switched On Then $I_Rus_Garage_Volume = 'RussoundCtl_1 / Garage Sound' Volume dB $I_Rus_Garage_Volume += 3 Set 'RussoundCtl_1 / Garage Sound' Volume '$I_Rus_Garage_Volume Decibel'
Recommended Posts