Coder Social home page Coder Social logo

Comments (6)

 avatar commented on August 14, 2024

It works. Are any error in logs?

from smartir.

erlendsellie avatar erlendsellie commented on August 14, 2024

Got home now, and testet some. I got this error in the log:

2019-02-26 16:33:36 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 291, in _handle_service_platform_call
    await func(entity, data)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/climate/__init__.py", line 576, in async_service_temperature_set
    await entity.async_set_temperature(**kwargs)
  File "/config/custom_components/smartir/climate.py", line 299, in async_set_temperature
    await self.send_command()
  File "/config/custom_components/smartir/climate.py", line 343, in send_command
    command = self._commands[operation_mode][fan_mode][target_temperature]
KeyError: 'Heat'

But! I found out that Operation Mode was not set before, making it fail. If i set Operation Mode to Heat in front end, it works. I'll add the climate.set_operation_mode to the automation before the temperature_set to ensure it'll run, if operation_mode ever becomes unset again.
Thanks!

from smartir.

 avatar commented on August 14, 2024

First of all, use heat instead of Heat.
The component ignores the operation_mode key in climate.set_temperature service.
You need to call climate.set_operation_mode service before or after the climate.set_temperature service

from smartir.

erlendsellie avatar erlendsellie commented on August 14, 2024

yeah, i just didn't choose an operation mode after installing the component, and did not set an operation mode when calling climate.set_temperature, just entity_id and temperature. But we are all good now:-)

from smartir.

anglrus avatar anglrus commented on August 14, 2024

Hello, please, could you help with setup.
I use SmartIR - UFO-R1 and Hisense. Hisense integrated with SmartIR using Tuya. I'd like to use your module. I did following:

  1. Configuration yaml:
    smartir:
    update_branch: rc
    climate: !include climates.yaml

  2. Climates.yaml:

  • platform: smartir
    name: Hisense Living Room
    unique_id: hisense_living
    device_code: 1522 # 1520, 1521, 1522
    controller_data: 192.168.1.81
    temperature_sensor: sensor.temperature
    humidity_sensor: sensor.humidity
    power_sensor: binary_sensor.ac_power
  1. Switches.yaml
  • platform: broadlink
    host: 192.168.1.81
    mac: 'XX'

And have got following errors:

ERROR:
Unable to find service broadlink/send
Traceback (most recent call last):
File "/config/custom_components/smartir/climate.py", line 338, in send_command
self._commands[operation_mode][fan_mode][target_temperature])
File "/config/custom_components/smartir/controller.py", line 85, in send
'broadlink', 'send', service_data)
File "/usr/src/homeassistant/homeassistant/core.py", line 1212, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service broadlink/send

The second WARNING:
Platform broadlink not ready yet. Retrying in 60 seconds.

Thank you

from smartir.

vassilis-panos avatar vassilis-panos commented on August 14, 2024

Nothing to do with SmartIR.
You need to fix the broadlink switch until broadlink.send is available

from smartir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.