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

Added a 5V Relay to the sensor #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added a 5V Relay to the sensor #66

wants to merge 2 commits into from

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.

None yet

1 participant