- Posts: 10
- Thank you received: 0
AV control via Home Assistant broken?
- jgus
- Topic Author
- Offline
- User
-
Less
More
2 years 3 months ago #2474
by jgus
AV control via Home Assistant broken? was created by jgus
There's unfortunately no driver for my Arcam AVR (see my other post) _but_ my Home Assistant does have an integration for it, and the HA driver found the device, and I enabled it - but no commands I send to it seem to work. I can successfully control other things via the HA driver (room lights, for example) but no commands I try to send to the AVR seem to do anything. Any pointers here?
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 3 months ago #2475
by bowlingbeeg
Replied by bowlingbeeg on topic AV control via Home Assistant broken?
What does the log in myServer say if you turn on verbose logging in the HA driver? Make sure you have logging enabled on the dashboard home screen and then on HA driver click the verbose checkbox and try your command.
Please Log in to join the conversation.
- jgus
- Topic Author
- Offline
- User
-
Less
More
- Posts: 10
- Thank you received: 0
2 years 3 months ago - 2 years 3 months ago #2483
by jgus
Replied by jgus on topic AV control via Home Assistant broken?
Aha. In HA, my AVR has two zones, and each is represented by an entity, "media_player.theater_preamp_zone_1", and "media_player.theater_preamp_zone_2". The first is enabled and the second disabled (both the default for this integration.)
HAGateway imported both of these together as a single device with the Entities field containing both: "media_player.theater_preamp_zone_1,media_player.theater_preamp_zone_2". That seems a little broken to start with - is that supposed to control _both_ zones, or...? Anyway, beyond that, looking at the logs, myServer was sending commands to zone_2, but not zone_1. I edited the Entities field to contain only zone_1, and now basic commands appear to work. That's progress. Yay!
Source selection still doesn't seem to work, though. Maybe I'm doing something wrong? In Driver Command Testing, I'm trying the AV:Source command, and trying to edit the Actual Command with different things for the source name: "AV|10~Source~BD", "AV|10~Source~0", etc, nothing seems to do anything. The log looks like this:
The empty source attribute is clearly suspicious. (It's also a little weird that it apparently sends the event ten times, but you do you I guess.)
HAGateway imported both of these together as a single device with the Entities field containing both: "media_player.theater_preamp_zone_1,media_player.theater_preamp_zone_2". That seems a little broken to start with - is that supposed to control _both_ zones, or...? Anyway, beyond that, looking at the logs, myServer was sending commands to zone_2, but not zone_1. I edited the Entities field to contain only zone_1, and now basic commands appear to work. That's progress. Yay!
Source selection still doesn't seem to work, though. Maybe I'm doing something wrong? In Driver Command Testing, I'm trying the AV:Source command, and trying to edit the Actual Command with different things for the source name: "AV|10~Source~BD", "AV|10~Source~0", etc, nothing seems to do anything. The log looks like this:
Code:
03/05/2024 10:59:15.59 · DEBUG · Server.doCommand - AV|10~Source~BD from dashboard-fx-cg1n
03/05/2024 10:59:15.59 · DEBUG · HAGateway.doCommand - Cmd=[10~Source~BD] Client=[dashboard-fx-cg1n]
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
03/05/2024 10:59:15.59 · DEBUG · HAGateway.RX Domain Event - {"domain": "media_player","service": "select_source","service_data": {"entity_id": "media_player.theater_preamp_zone_1","source": ""}}
The empty source attribute is clearly suspicious. (It's also a little weird that it apparently sends the event ten times, but you do you I guess.)
Last edit: 2 years 3 months ago by jgus.
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 3 months ago #2484
by bowlingbeeg
Replied by bowlingbeeg on topic AV control via Home Assistant broken?
This forum is really bad. I can't even view this thread anymore on my desktop, had to view it on android. Your code sections are one huge line so it goes off the screen. Can you edit your post to add line breaks or put the data in a file and attach it?
Please Log in to join the conversation.
- jgus
- Topic Author
- Offline
- User
-
Less
More
- Posts: 10
- Thank you received: 0
2 years 3 months ago #2485
by jgus
Replied by jgus on topic AV control via Home Assistant broken?
Ugh, sorry, didn't see that. Edited
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 3 months ago #2486
by bowlingbeeg
Replied by bowlingbeeg on topic AV control via Home Assistant broken?
Thanks ... would be nice if the forum had some decent wrapping.
Yeah the empty source attribute does seem like an issue. Dave will probably need to take a look.
Yeah the empty source attribute does seem like an issue. Dave will probably need to take a look.
Please Log in to join the conversation.
Time to create page: 0.192 seconds