bhyve-home-assistant icon indicating copy to clipboard operation
bhyve-home-assistant copied to clipboard

Zone switch: Incorrect program attribute reported as enabled for program(s) enabled only for other zones.

Open andrus2049 opened this issue 9 months ago • 0 comments

Latest HA version and latest bhyve-home-assistant integration.

Problem:

When having different programs (a, b and c) enabled for each zone, a switch. zonename _zone reports a program as 'enabled': true even if it's actually used only for another zone.

Example: zone1: uses program_c only zone2: uses program_a only

switch.zone1_zone for attribute program_a returns: {'enabled': True, 'name': 'my_program_A', 'is_smart_program': False} even if program_a is not enabled for that zone1. Here program_a 'enabled' should be reported as false for this zone.

Similarly, switch.zone2_zone for attribute program_c returns: {'enabled': True, 'name': 'my_program_C', 'is_smart_program': False} even if program_c is not enabled for that zone2. Here program_c 'enabled' should be reported as false for this zone.

andrus2049 avatar May 13 '24 09:05 andrus2049