Comments (9)
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.
Thanks, I will (probably somewhere this weekend) add it
from whr_930.
Thank you! All working now.
Another question, did you ever try to integrate the whr930 into google home using home assistant?
from whr_930.
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.
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.
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.
@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.
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.
@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.
Homekit configuration
Copy the following configuration to your configuration.yaml
homekit:
filter:
include_entities:
- fan.ventilation
from whr_930.
Related Issues (19)
- Can't set fan speed HOT 8
- UnboundLocalError: local variable 'EnthalpyPresent' referenced before assignment HOT 1
- WHR 930 Basic model doesn't support all commands HOT 2
- Q: is there a way to install this module on Hasio? (the os) HOT 4
- Error in HA wtw: !include includes/wtw.yaml HOT 2
- Speed 100% HOT 3
- Question HOT 1
- Home Assistant has changed MQTT Fans HOT 2
- Duplicate '07' bytes in data HOT 5
- If message is empty and debug > 1 out of index is thrown HOT 3
- few questions HOT 2
- question about custom:wtw-card
- Error in calculation of fan speed HOT 1
- Filter Status HOT 4
- Unable to set sensor.wtw_comfort_temperature HOT 1
- Warning get_fan_status HOT 1
- get_status type wrong HOT 1
- ValueError: invalid literal for int() with base 10: 'a0' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whr_930.