homeassistant/archive/packages/sprinklers.yaml.off

48 lines
1.6 KiB
Plaintext
Raw Normal View History

homeassistant:
# Customize for Sprinklers - map relay to sprinkler name/location
customize:
switch.relay1:
friendly_name: Front Yard North
# sensor.closet_temperature:
# friendly_name: Closet Temperature (C)
# input_number.fan_on_temp:
# friendly_name: Fan On Set Temperature (C)
# 8 Relay Board, Topic number is gpio pin
switch:
- platform: mqtt
name: "relay1" # Pine64 gpio 80 is pin 40
state_topic: "relays/status/80"
command_topic: "relays/set/80"
state_on: "on"
state_off: "off"
payload_on: "on"
payload_off: "off"
icon: mdi:water
# This automation script runs when a value is received via MQTT on retained topic: setTemperature
# It sets the value slider on the GUI. This slides also had its own automation when the value is changed.
automation:
# - alias: Closet Fan On Set Temperature slider
# trigger:
# platform: mqtt
# topic: 'closet/status/fan/automation/temp'
# action:
# service: input_number.set_value
# data_template:
# entity_id: input_number.fan_on_temp
# value: "{{ trigger.payload }}"
# This second automation script runs when the target temperature slider is moved.
# It publishes its value to the same MQTT topic it is also subscribed to.
# - alias: Closet Fan Temp Slider Moved
# trigger:
# platform: state
# entity_id: input_number.fan_on_temp
# action:
# service: mqtt.publish
# data_template:
# topic: 'closet/fan/automation/temp'
# retain: true
# payload: "{{ states('input_number.fan_on_temp') }}"