I want to link two HEOS devices so that when the volume is changed on one (using the hardware controls) this is picked up in HA and the other device mirrors the volume.
I have done this fairly easily with an automation however I can only make it work if I set a pre-determined value for the mirrored device. I want to read the volume_level attribute from the device that has been changed and apply it to the other device however I cannot make it work.
The automation is triggered however the volume of the second device is not changed. If I set it to a static value rather than reading the attribute it works correctly.
I have something that does same, i took it from Petro AV setup. You’ll need to strip the specific on the devision and rounding, but the trigger.to_state is the hint i suppose