SmartIR - Control your Climate, TV and Fan devices via IR/RF controllers

Hi
I’m getting the same error on all media_players.smartir and climate.smartir devices after upgrading to HA 0.92.0 and downloading the latest SmartIR.

My setup for each device is similar to:

- platform: smartir
  name: Haier AC
  unique_id: haier_ac
  device_code: 1320
  controller_data: 192.168.1.221 

and each device gives the error:

Invalid config for [climate.smartir]: required key not provided @ data[‘controller_send_service’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/climate.smartir/

on Config check.

The SmartIR folder is configured thus:

04

What am I doing wrong?

hi, with the last update some controls on the samsung tv no longer work, type volume, power on

Are you sure you have downloaded al the files and installed the latest. controller_send_service was used in the previous one a few days ago

your config is correct using the new one

in my __init__py file i have VERSION = ‘1.4.1’
is your the same

Are you seeing an incompatibility with custom-ui/customizer ? In 0.91.4, I can run customizer fine but as soon as I try to create a new media_player with smartIR (instead of broadlink IR that’s still working), the frontend won’t load (logo with loading data displayed) and fires js errors in the logs.

Version 1.4.1 in the __init__.py

updated to 1.4.2 the media_player is ok, but the daikin conditioner does not work

1 Like

The update message also informed you that there is a breaking change in the config. Please refer to the documents in the GitHub repo or some messages above.

Is restore_state still functional on 1.4.2. I’ve noticed since 1.4.1, every time I restarted Hass, the state of Climate stayed at OFF while it’s ON before the restart.

Which command do you use in Google assistant?

“OK google…” “metti Cielo” “passa a Cielo” “passa al canale Cielo” “metti il canale Cielo”

1 Like

Hello.
I was successful setting up one broadlink (mini 3) to Fujitsu mini split, using the generic Fujitsu code.
However I have 5 units in different rooms, so I’m trying to setup multiple broadlink units. Can someone post a sample syntax?
I feel like I tried every possible config, but can only get one to show up in the main screen.
I made sure I’m updated, and all the units work independently, just not when I have multiple entries in configuration.yaml.
Thanks

confige

confige

(note: IP and MAC address are unique in each of the switch hots etc)

Hi,

Thanks for all the work with this custom component. I’m trying to figure out how to use it and will need some help to do so. My need is kind simple but couldnt found how to do that. I have a broadlink mini and a local brand heater which has only 3 modes: fan, low and high. My HA is not exposed to internet so the online json tool will not work. How should I create the json? (I already have the ir codes). Is there documentation about the json format? ty.

I think you need different unique_id for 1st Floor HVAC and 3rd Floor HVAC

duh. …man I must have tried every trick in the book - except proofreading for an obvious oversight.
Thanks @saadbashir
that works!

I would just try one of the existing code sets available in the repo and modify it to suit your requirements I have modified them before as some machines dont have all the same modes.
For example, one of my aircon units doesn’t have a dry setting, so I just removed the dry section entirely from the file.

HI , i’m updated to hassio 0.92, i belive i have done all the updates in my settings, can anybody tell me what is wrong in my setting that i dont see?1 2 3

5

so, apparently it’s all ok now.
I have found out that I had a spelling mistake in one of the climate files (wrote contorller_data insted of controller_data), once fixed and restarted everything is working fine Now :wink:

Thanks again to Vassillis for the great component

1 Like

SmartIR on hassio 0.91.3 get this error when try to send command:

ERROR (MainThread) [custom_components.smartir.media_player] (ServiceNotFound(...), 'Service broadlink.send not found')
Traceback (most recent call last):
  File "/config/custom_components/smartir/media_player.py", line 249, in send_command
    await self._controller.send(command)
  File "/config/custom_components/smartir/controller.py", line 75, in send
    'broadlink', 'send', service_data)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call
    raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service broadlink.send not found')

Can not find broadlink.send on my services, just switch.broadlink_send_packet_IP_ADDRESS

Broadlink.Send was introduced in 0.92.0.

Couldn’t find it in breaking changes in the release notes but it seems they updated the docs for the Broadlink component.

I’d suggest you to update to 0.92.1 and forget about setting this component for 0.91.x and earlier versions as sooner or later you’ll have to change, otherwise use the older versions of this component.

You haven’t pasted the complete code so I assumed you have defined smartir first. A dash is also missing before the platform: smartir. Please make changes to the following example available in the documentation:
Source: https://github.com/smartHomeHub/SmartIR/blob/master/docs/CLIMATE.md

smartir:

switch:

  • platform: broadlink
    host: 192.168.10.10
    mac: ‘00:00:00:00:00:00’

climate:

  • platform: smartir
    name: Office AC
    unique_id: office_ac
    device_code: 1000
    controller_data: 192.168.10.10
    temperature_sensor: sensor.temperature
    humidity_sensor: sensor.humidity
    power_sensor: binary_sensor.ac_power

Tks,

actually all my files are broke down to one file per climate, so i dont need the "-“ before the platform.

but again, tks anyway