One of the code I am using is this
PRIMO = JgDwAJSUDxIQERAREBEQMRAyEBEPEg8RETEPEg8xEjEPEhARERAQlRAREw4PEg8SEDEREBQtEBIPMhAREBEQMRARETEOEw8tFRYLMRUtDxIQAAdBlpIREBARERAQERExEDEUDRAREBMOMRERDzIQMREQEBEREBCVDxIXChAREBEQMRARETEQEQ8yEBEQERQsERIPMhUMEDEQERAxETEQERAAB0GTlREQEBEQERAPEjINNBARERAQERAxEREPMhAxERAQERQOD5UUDRARDxIQERAxEBEQMhARDzIREBYLEDEQEg8yDxIPMhAREDEQMhAREAANBQAAAAAAAAAA
you shouldn’t need to use the app to get codes, unless that what you are wanting to do. I just use the dev-service in HA to learn code and then press the button I want to learn on my remote. The IR code comes up as a persistant message in the dev-state page.
Don’t forget to restart HA before learning with the Broadlink, seems to be a more reliable way to capture the codes. Also, throw a ‘==’ on the end to enforce the end of a message.
Hey @Vassilis, is it possible to hook up the power load sensor in the media player to the Fan component?
I’d really love to use the load detected from a Xiaomi zigbee power Plug to to override the true on state if the fan gets turned on with the remote etc
This is a very nice component for my old dump LG TV.
Thanks for this.
Maybe a bug? The service media_player.volume_mute doesn’t work. 2018-01-11 23:49:24 ERROR (MainThread) [homeassistant.core] Invalid service data for media_player.volume_mute: required key not provided @ data['is_volume_muted']. Got None
And after adding broadlink media player I get in Configuration validation error:
2018-02-05 16:14:36 ERROR (MainThread) [homeassistant.config] Invalid config for [media_player.broadlink]: required key not provided @ data[‘ircodes_ini’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/media_player.broadlink/
I’m using a Chromecast on my dumb TV. Pinging to it returns the TV state as on as Chromecast remains online all the time. Should I just stop pinging the Chromecast? What is the TV state logic like when no box is pinged? @vassilis, thanks for your great work on this…
Unfortunately, this is the case with IR controlling. If you don’t provide a ‘hack’ for state determination then your component stays in on mode when you turn off your tv from the remote control.
If your TV is a real dump (without at least a usb port), then the only solution is a plug with power consumption meter.
Is there no way to add some of the following commands:
-initial_state: off
-assumed_state: true
-optimistic: true
With this type of logic, the state would be guessed as ‘off’ when HA starts. An IF power command would turn its state to ‘on’. Another would turn it back to ‘off’.
If the Broadlink RM can detect and pass on to HA actual remote control presses, it could even post any change to HA initiated by the remote. This is what can be done with the Milight ESPMH Gateway for instance. May not be possible with non-flash, off the shelf electronics…
These are the type of commands that can be used with MQTT Lights. I use these with RF controlled lights (same principle as IR) and it works a treat.
I second to that question. My Sharp legacy TV has an USB port for media playing.
Also besides Sonoff Pow, @masterkenobi mentioned, does anyone recommends other alternatives (cheap/reliable)?