The previous custom component worked pretty well, however most of my commands get dropped, whereas Google Home and app are able to send commands.
I have enabled debug, will let you know if I see something.
Also, is there a way to learn commands using HA?
(whenever I start learn command service, there’s an error in log saying cannot connect to broadlink or something.)
@VasileyI was wondering if there’s a way to use your code to achieve something in reverse (add an IR receiver near AC IR receiver, and get any commands sent to the AC?)
This will be useful to keep HA in sync with any changes made via manual remote/Google
Not sure whether this is due to a change in HA climate platform, or specifically to this one, but ever since maybe a week or 2 ago I can’t say “Hey google, turn on the air conditioner”. She complains this mode is not supported, where it used to work fine.
So now i have to say “hey google, set the air conditioner to cool” or “hey google, set the air conditioner to off” which doesn’t feel like natural language.
Actually I resolved my issue by syncing my devices with google home. To do this say “hey google sync my devices”. The on/off commands now started working as was the case before.
There must have been something changed with the climate platform for google assistant in one of the recent HA releases
Is anyone using the SmartIR component with a window AC that has a “dumb” remote - the remote I have only allows me to turn the temperature up/down, the fan speed up/down, change the mode, etc. and sends a unique code for each command.
I have created a json file to be able to control my A/C unit via an IR blaster that is controlled (MQTT) by tasmota using the IRHVAC command. I’ve done this by embedding the (escaped) json message inside the smartir json file. I want to share this, in case it could be useful for other people since I’ve tried to get this working for days now, but I am not sure if it fits? because I am not sending the IR code, but a json string like
for example. So could anyone that’s involved in development maybe tell me if it is okay to add this? Because I am unsure if it fits the project but if the dev(s) give me the OK I will put in a pull request.
Hi @Vassilis I have finally (after moving house) gotten around to getting this set up using the devices codes you kindly provided however the component isnt turning my amp on, so I can’t test (to my knowledge) any other aspects. There is no error in the log, just nothing happens when I press the power button in the HA GUI. Any ideas of what to look for?
EDIT: I turned the amp on with the normal remote and this media player then displays the other options such as volume control and input select, however none of the controls seem to be sending a signal via IR
Haven’t used this component for a while… But when I say “Turn on Living Room AC” google assistant thinks its done it but i get the following log error
2019-04-21 11:17:09 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/app/homeassistant/components/homekit/type_thermostats.py”, line 250, in update_state
if isinstance(target_temp, float) and current_temp > target_temp:
TypeError: ‘>’ not supported between instances of ‘NoneType’ and ‘float’
Component is defined as
climate:
- platform: smartir
name: Living Room AC
device_code: 1280
controller_send_service: switch.broadlink_send_packet_IP_ADDRESS
Downloaded the latest codes from smartir and restarted… still same error.
Sorry don’t understand what you mean. I don’t really have a temperature sensor as such. This is a Broadcom IR which simply switches on and off the AC. Could you paste the code block what you are suggesting?
Is it
climate:
- platform: smartir
name: Living Room AC
device_code: 1280
controller_send_service: switch.broadlink_send_packet_IP_ADDRESS
temperature_sensor:
@brent0np When I go to create the config for SmartIR, it seems like I have to set up for each combination - e.g. Fan Speed High, Temperature 75. My remote doesn’t work that way, it’s simply turn the temperature up or down one degree at a time. Does that make sense?