Skip to content
This repository was archived by the owner on Dec 8, 2019. It is now read-only.

Conversation

martinezpenya
Copy link

Added a 5V Relay to the sensor:

In HA (switch):

  • platform: mqtt
    name: "sensornode1 relay"
    state_topic: "bruh/sensornode1"
    command_topic: "bruh/sensornode1/relay"
    value_template: '{{ value_json.relay }}'
    qos: 0
    retain: true

In HA (light)

  • platform: mqtt_json
    name: "sensornode1 light"
    state_topic: "bruh/sensornode1"
    command_topic: "bruh/sensornode1/light"
    assumed_state: false
    brightness: true
    flash: false
    rgb: true
    optimistic: false
    qos: 0

Othe sensors as before.

Added a 5V Relay to the sensor:

In HA (switch):
- platform: mqtt
  name: "sensornode1 relay"  
  state_topic: "bruh/sensornode1"  
  command_topic: "bruh/sensornode1/relay"
  value_template: '{{ value_json.relay }}'
  qos: 0
  retain: true

In HA (light)
- platform: mqtt_json  
  name: "sensornode1 light"  
  state_topic: "bruh/sensornode1"  
  command_topic: "bruh/sensornode1/light"  
  assumed_state: false
  brightness: true
  flash: false  
  rgb: true  
  optimistic: false
  qos: 0

Othe sensors as before.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant