Giter VIP home page Giter VIP logo

Comments (9)

Mosibi avatar Mosibi commented on June 1, 2024 1

Thanks for reporting!

The error itself is harmless, I do a lot of validation to ensure that a message received is valid and complete and since serial communication can be flaky sometimes it happens that a message which is received is not compliant to the specification. I see those message's also on my own WHR930 a few times a hour.

I will submit a new version in a few minutes where those warning messages are not shown anymore. If you still want to see them, set the 'warning' parameter to True. For the Traceback I added an exception handler.

from whr_930.

Mosibi avatar Mosibi commented on June 1, 2024 1

Thanks, I will (probably somewhere this weekend) add it

from whr_930.

iamrellah avatar iamrellah commented on June 1, 2024

Thank you! All working now.
Another question, did you ever try to integrate the whr930 into google home using home assistant?

from whr_930.

Mosibi avatar Mosibi commented on June 1, 2024

Thank you! All working now.
Another question, did you ever try to integrate the whr930 into google home using home assistant?

Not with google home, but I did an integration with Amazon Alexa. I created a virtual device โ€œventilationโ€ using the emulated-hue component, where off is level 2 (our default level) and 3 is on. So we can say, Alexa turn ventilation on/off

from whr_930.

iamrellah avatar iamrellah commented on June 1, 2024

Thats sounds awesome! Could you maybe share you script? Might help me to get it working with google home. Would highly appreciate it!

Edit: Was able to get something working. I'm able to control the WHR using Google Home/Homekit using this in the configuration.yaml. Only thing that doesn't work yet is the state topic, so it will change the speed value but not read what state is. Pretty basic so far. Looking into what needs to be done to get the state working.

Edit2:
Turns out getting the state is pretty simple.
Just needed to add this:

    state_value_template: "{{ states.sensor.wtw_ventilation_level.state }}"
    speed_value_template: "{{ states.sensor.wtw_ventilation_level.state }}"

So the full config becomes:
As you can see in my config below if set payload off to 1. If set to 0 the WHR will go into "Away" mode.

fan:
  - platform: mqtt
    name: "Ventilatie"
    state_topic: "house/2/attic/wtw/ventilation_level"
    command_topic: "house/2/attic/wtw/set_ventilation_level"
    speed_state_topic: "house/2/attic/wtw/ventilation_level"
    speed_command_topic: "house/2/attic/wtw/set_ventilation_level"
    state_value_template: "{{ states.sensor.wtw_ventilation_level.state }}"
    speed_value_template: "{{ states.sensor.wtw_ventilation_level.state }}"
    payload_off: "1"
    payload_on: "3"
    payload_low_speed: "1"
    payload_medium_speed: "2"
    payload_high_speed: "3"
    speeds:
      - "off"
      - low
      - medium
      - high

from whr_930.

Mosibi avatar Mosibi commented on June 1, 2024

Ah, you already have some. I use the switch variant, but I saw that indeed there is also a fan component now. This what I have configured

switch:
  - platform: mqtt
    name: "Ventilation"
    command_topic: "house/2/attic/wtw/set_ventilation_level"
    state_topic: "house/2/attic/wtw/ventilation_level"
    qos: 0
    payload_on: "3"
    payload_off: "2"
    state_on: "3"
    state_off: "2"
    optimistic: false

emulated_hue:
  advertise_ip: <ip address>
  expose_by_default: false
  exposed_domains:
    - switch
  entities:
    switch.ventilation:
      hidden: false

from whr_930.

iamrellah avatar iamrellah commented on June 1, 2024

@Mosibi thanks! I was able to get it working with the fan component. Turned out to be pretty straight forward. Exposed the fan component to Google Home and Homekit and able to control the WHR930 using both now ๐Ÿ˜„

from whr_930.

Mosibi avatar Mosibi commented on June 1, 2024

Would be nice if we can add this to the readme. Can you create a pull request or share the complete config sections here?

from whr_930.

iamrellah avatar iamrellah commented on June 1, 2024

@Mosibi this should do, let me know if you need anything else ๐Ÿ˜ƒ

Google Home/Alexa configuration

Copy the following configuration to your configuration.yaml

fan:
  - platform: mqtt
    name: "Ventilation"
    state_topic: "house/2/attic/wtw/ventilation_level"
    command_topic: "house/2/attic/wtw/set_ventilation_level"
    speed_state_topic: "house/2/attic/wtw/ventilation_level"
    speed_command_topic: "house/2/attic/wtw/set_ventilation_level"
    state_value_template: "{{ states.sensor.wtw_ventilation_level.state }}"
    speed_value_template: "{{ states.sensor.wtw_ventilation_level.state }}"
    payload_off: "0"
    payload_on: "3"
    payload_low_speed: "1"
    payload_medium_speed: "2"
    payload_high_speed: "3"
    speeds:
      - "off"
      - low
      - medium
      - high

In the Home Assistant cloud configure either Google Home or Alexa and expose the newly added entity.

ha-googlehome

Homekit configuration

Copy the following configuration to your configuration.yaml

homekit:
  filter:
    include_entities:
      - fan.ventilation

homekit-iphone

from whr_930.

Related Issues (19)

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.