SmartIR icon indicating copy to clipboard operation
SmartIR copied to clipboard

MediaPlayer: wait until device is ready after turning on or off

Open AThomsen opened this issue 3 years ago • 3 comments

(Copy of #696 that was closed because stale with no further reason...)

When turning on some devices it takes some time before the device is ready to the next ir commands. Same goes for turning off the device.

With the current implementation scripting something like "turn on receiver and set input to hdmi2" requires adding a delay to the script between the two commands.

This PR adds two new device parameters: warm_up_delay and cool_down_delay that fixes this.

Another change is that delay is respected always and not only when sending command lists. BTW: why is delayset in the HA config.yaml instead of in the device descriptor files?

AThomsen avatar Jun 26 '22 19:06 AThomsen

warm_up_delay and cool_down_delay named delay_on and delay_off are more generic.

snowyu avatar Jul 01 '22 00:07 snowyu

Yes, but I like the more specific names for this, as it is - well, a specific function. But I guess that's subjective.

AThomsen avatar Jul 01 '22 15:07 AThomsen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 10:08 stale[bot]