Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107540

MQTT Fan with RF Bridge

$
0
0

I could really use some help. I have a sonoff RF bridge which has been flashed with OpenMQTTGateway. I have a RF fan light which when pressing the buttons give me the following payloads:
Fan off: 9163010
Low: 9163014
Med: 9163018
High: 9163020

There is no other info but the value as shown above.

I have configured a fan and I can turn on and change the speed. The issue is that it constantly states it is off.
What am I doing wrong?

- platform: mqtt
  name: "Test"
  unique_id: "test"
  state_topic: "home/OpenMQTTGateway/SRFBtoMQTT"
  state_value_template: >
    {% if value == 9163010 %}
      9163010
    {% elif value == 9163014 %}
      'on'
    {% elif value == 9163018 %}
      'on'
    {% elif value == 9163020 %}
      'on'
    {% endif %}
  command_topic: "home/OpenMQTTGateway/commands/MQTTtoSRFB"
  percentage_state_topic: "home/OpenMQTTGateway/SRFBtoMQTT"
  percentage_value_template: >
    {% if value == '9163014' %}
      33
    {% elif value == '9163018' %}
      66
    {% elif value == '9163020' %}
      100
    {% else %}
      0
    {% endif %}
  percentage_command_topic: "home/OpenMQTTGateway/commands/MQTTtoSRFB"
  percentage_command_template: >
    {% if value < 34 %}
      9163014
    {%  elif  value < 67 %}
      9163018
    {% else %}
      9163020
    {% endif %}
  qos: 0
  retain: true
  #payload_on: "9163020"
  payload_off: "9163010"

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>