anyone using Tasmota + H801 + Home Assistant + MQTT ?

487 views
Skip to first unread message

Tom Staels

unread,
Feb 17, 2018, 9:25:06 AM2/17/18
to SonoffUsers
if yes, please have a look at your Home Assistant logs.
Do they get spammed with error messages on every command sent to the H801 ?

Kris J

unread,
Feb 17, 2018, 6:08:48 PM2/17/18
to SonoffUsers


On Saturday, February 17, 2018 at 9:25:06 AM UTC-5, Tom Staels wrote:
if yes, please have a look at your Home Assistant logs.
Do they get spammed with error messages on every command sent to the H801 ?


All good here, v5.12.0b on HA 0.63.2.Configured as PWM (SetOption15 0):
'''
 # h801 test
 
- platform: mqtt
    name
: "Test-H801-WW"
    state_topic
: "stat/test-h801/RESULT"
    state_value_template
: '{%- if value_json["PWM"]["PWM5"]| int > 0 -%} 1023 {%- else -%} 0 {%- endif -%}'
    command_topic
: "cmnd/test-h801/PWM5"
    on_command_type
: 'brightness'
    brightness_state_topic
: "stat/test-h801/RESULT"
    brightness_command_topic
: "cmnd/test-h801/PWM5"
    brightness_value_template
: '{{value_json["PWM"]["PWM5"]}}'
    brightness_scale
: 1023
    qos
: 0
    payload_on
: '1023'
    payload_off
: '0'
    retain
: true
    optimistic
: false
   
 
- platform: mqtt
    name
: "Test-H801-CW"
    state_topic
: "stat/test-h801/RESULT"
    state_value_template
: '{%- if value_json["PWM"]["PWM4"]| int > 0 -%} 1023 {%- else -%} 0 {%- endif -%}'
    command_topic
: "cmnd/test-h801/PWM4"
    on_command_type
: 'brightness'
    brightness_state_topic
: "stat/test-h801/RESULT"
    brightness_command_topic
: "cmnd/test-h801/PWM4"
    brightness_value_template
: '{{value_json["PWM"]["PWM4"]}}'
    brightness_scale
: 1023
    qos
: 0
    payload_on
: '1023'
    payload_off
: '0'
    retain
: true
    optimistic
: false
   
 
- platform: mqtt
    name
: "Test-H801-Red"
    state_topic
: "stat/test-h801/RESULT"
    state_value_template
: '{%- if value_json["PWM"]["PWM1"]| int > 0 -%} 1023 {%- else -%} 0 {%- endif -%}'
    command_topic
: "cmnd/test-h801/PWM1"
    on_command_type
: 'brightness'
    brightness_state_topic
: "stat/test-h801/RESULT"
    brightness_command_topic
: "cmnd/test-h801/PWM1"
    brightness_value_template
: '{{value_json["PWM"]["PWM1"]}}'
    brightness_scale
: 1023
    qos
: 0
    payload_on
: '1023'
    payload_off
: '0'
    retain
: true
    optimistic
: false
 
 
- platform: mqtt
    name
: "Test-H801-Green"
    state_topic
: "stat/test-h801/RESULT"
    state_value_template
: '{%- if value_json["PWM"]["PWM2"]| int > 0 -%} 1023 {%- else -%} 0 {%- endif -%}'
    command_topic
: "cmnd/test-h801/PWM2"
    on_command_type
: 'brightness'
    brightness_state_topic
: "stat/test-h801/RESULT"
    brightness_command_topic
: "cmnd/test-h801/PWM2"
    brightness_value_template
: '{{value_json["PWM"]["PWM2"]}}'
    brightness_scale
: 1023
    qos
: 0
    payload_on
: '1023'
    payload_off
: '0'
    retain
: true
    optimistic
: false
 
 
- platform: mqtt
    name
: "Test-H801-Blue"
    state_topic
: "stat/test-h801/RESULT"
    state_value_template
: '{%- if value_json["PWM"]["PWM3"]| int > 0 -%} 1023 {%- else -%} 0 {%- endif -%}'
    command_topic
: "cmnd/test-h801/PWM3"
    on_command_type
: 'brightness'
    brightness_state_topic
: "stat/test-h801/RESULT"
    brightness_command_topic
: "cmnd/test-h801/PWM3"
    brightness_value_template
: '{{value_json["PWM"]["PWM3"]}}'
    brightness_scale
: 1023
    qos
: 0
    payload_on
: '1023'
    payload_off
: '0'
    retain
: true
    optimistic
: false
#-----------

'''
 

Tom Staels

unread,
Feb 18, 2018, 4:47:57 AM2/18/18
to SonoffUsers
great stuff, Kris!
Thanks for the .yaml

Can I ask : why did you choose the PWM route instead of RGB ?

Kris J

unread,
Feb 18, 2018, 5:59:23 AM2/18/18
to SonoffUsers


I use the H801 controllers for static lighting situations, no effects needed. 
And I kind of prefer the PWM sliders over the color wheel.
Reply all
Reply to author
Forward
0 new messages