- Posts: 64
- Thank you received: 1
AV device ID update
- retate
- Topic Author
- Offline
- User
-
Less
More
2 years 3 months ago #2241
by retate
AV device ID update was created by retate
I have found that when I remove an AV AVR device that was assigned to a room, and then discover the device and assign it to the same room the device ID changes. However, the variables for the room such as bedroom1_avr_id and bedroom1_avamp_id will still have the ID associated with the device that was removed so commands will be sent to the wrong device ID. I have been able to use the Server Variables tab and change the ID to the new value. Is the behavior I am experiencing the expected behavior? If the behavior is expected is the updating the system server variables the only way to deal with this issue?
Please Log in to join the conversation.
- cjisble
- Offline
- User
-
Less
More
- Posts: 189
- Thank you received: 12
2 years 3 months ago #2243
by cjisble
Replied by cjisble on topic AV device ID update
I consider this a bug. I had this happen to multiple devices before I realized what was happening.
My solution was to remove all the devices and remove all the server variables that were device specific. Adding everything back again got things in sync.
My solution was to remove all the devices and remove all the server variables that were device specific. Adding everything back again got things in sync.
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 3 months ago #2245
by bowlingbeeg
Replied by bowlingbeeg on topic AV device ID update
You shouldn't be using the device specific variables in your macros or the remote. You should be using the variables like {{active_avr_{{clientname}}}} to get the device id of the active AVR. So in your macro your commands would look like this:
AV|{{active_avr_{{clientname}}}}~Power~On
Then you can switch the AVR device id and it doesn't break everything.
AV|{{active_avr_{{clientname}}}}~Power~On
Then you can switch the AVR device id and it doesn't break everything.
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 3 months ago - 2 years 3 months ago #2246
by bowlingbeeg
Replied by bowlingbeeg on topic AV device ID update
Hmmm, after my initial comment I went and I tried changing the ID of one of my devices just to make sure what I said was correct. So I changed the avr to a new ID and as soon as I selected the room it changed both the {{active_avr_{{clientname}}}} and the {{theater_avr_id}} value. So maybe there is some sort of issue here. I'm not sure why yours didn't update like mine.
Edit: Is it possible you just need to re-select the room and the ID will update?
Edit: Is it possible you just need to re-select the room and the ID will update?
Last edit: 2 years 3 months ago by bowlingbeeg.
Please Log in to join the conversation.
- retate
- Topic Author
- Offline
- User
-
Less
More
- Posts: 64
- Thank you received: 1
2 years 3 months ago #2247
by retate
By "re-select the room" do you mean editing the AVR device room definition or did you have something else in mind?
I have also noted with device IDs that in some cases when a device has been deleted, the ID will be reused when a device is added. In other cases, the device ID appears to never be reused.
Replied by retate on topic AV device ID update
The behavior I was seeing only involved myServer generated code/macros. I found this looking at the log file and realizing that the reason a device was not turning on was because the device ID was from a previous definition.You shouldn't be using the device specific variables in your macros or the remote.
bowlingbeeg post=2246 userid=652
Edit: Is it possible you just need to re-select the room and the ID will update?
By "re-select the room" do you mean editing the AVR device room definition or did you have something else in mind?
I have also noted with device IDs that in some cases when a device has been deleted, the ID will be reused when a device is added. In other cases, the device ID appears to never be reused.
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 3 months ago #2248
by bowlingbeeg
Replied by bowlingbeeg on topic AV device ID update
By re-select I mean go and click the room again on the remote so that it hopefully will update the id.
Please Log in to join the conversation.
Time to create page: 0.177 seconds