diff --git a/blueprints/automation/homeassistant/better_thermostat_away_mode.yaml b/blueprints/automation/homeassistant/better_thermostat_away_mode.yaml index 0b7ee372..58cd1203 100644 --- a/blueprints/automation/homeassistant/better_thermostat_away_mode.yaml +++ b/blueprints/automation/homeassistant/better_thermostat_away_mode.yaml @@ -4,7 +4,7 @@ blueprint: description: Set BT Thermostats to Away mode if house is unoccupied. domain: automation # source_url: - # https://github.com/KartoffelToby/better_thermostat/blob/master/blueprints/away_mode.yaml + # https://github.com/KartoffelToby/better_thermostat/blob/master/blueprints/away_mode.yaml input: occupancy_sensor: name: Occupancy diff --git a/esphome/hot_tank_sensor.yaml b/esphome/hot_tank_sensor.yaml index 1d127a24..321576aa 100644 --- a/esphome/hot_tank_sensor.yaml +++ b/esphome/hot_tank_sensor.yaml @@ -32,7 +32,8 @@ output: - platform: esp8266_pwm id: blue_led pin: D5 # Nothing is really connected to D5. - # The built-in blue LED is connected to D4, but I stupidly picked that for I2C and don't want to change it. + # The built-in blue LED is connected to D4, + # but I stupidly picked that for I2C and don't want to change it. inverted: true light: diff --git a/esphome/tin_hut_door_left.yaml b/esphome/tin_hut_door_left.yaml index d12a9fd5..237cfba4 100644 --- a/esphome/tin_hut_door_left.yaml +++ b/esphome/tin_hut_door_left.yaml @@ -40,8 +40,10 @@ logger: # lambda: !lambda |- # return true; # turn_on_action: +# yamllint disable rule:line-length # - lambda: !lambda |- # ESP_LOGD("log_it", "LOG CO:%u PO:%f LD:%u", id(garage_door).current_operation, id(garage_door).position, id(last_dir)); # turn_off_action: # - lambda: !lambda |- # ESP_LOGD("log_it", "LOG CO:%u PO:%f LD:%u", id(garage_door).current_operation, id(garage_door).position, id(last_dir)); +# yamllint enable rule:line-length diff --git a/esphome/tin_hut_door_right.yaml b/esphome/tin_hut_door_right.yaml index 813843f1..357bf619 100644 --- a/esphome/tin_hut_door_right.yaml +++ b/esphome/tin_hut_door_right.yaml @@ -40,8 +40,10 @@ logger: # lambda: !lambda |- # return true; # turn_on_action: +# yamllint disable rule:line-length # - lambda: !lambda |- # ESP_LOGD("log_it", "LOG CO:%u PO:%f LD:%u", id(garage_door).current_operation, id(garage_door).position, id(last_dir)); # turn_off_action: # - lambda: !lambda |- # ESP_LOGD("log_it", "LOG CO:%u PO:%f LD:%u", id(garage_door).current_operation, id(garage_door).position, id(last_dir)); +# yamllint enable rule:line-length diff --git a/packages/device_alerts.yaml b/packages/device_alerts.yaml index f4efe05a..3b65fbb5 100644 --- a/packages/device_alerts.yaml +++ b/packages/device_alerts.yaml @@ -68,15 +68,23 @@ automation: condition: and conditions: - condition: template + # yamllint disable rule:line-length value_template: > {% if states.automation.alert_when_a_critical_device_goes_offline.last_triggered is not none %} - {% if as_timestamp(now()) | int - as_timestamp(states.automation.alert_when_a_critical_device_goes_offline.attributes.last_triggered) | int > 3600 %} true {% else %} false + {% if as_timestamp(now()) | int - as_timestamp(states.automation.alert_when_a_critical_device_goes_offline.attributes.last_triggered) | int > 3600 %} + true + {% else %} + false {% endif %} {% else %} false {% endif %} + # yamllint enable rule:line-length action: - service: notify.email_kyle data_template: - message: '{{trigger.to_state.attributes.friendly_name}} has gone offline. Please check the status of this device as some features may stop functioning.' + message: > + '{{trigger.to_state.attributes.friendly_name}} has gone offline. + Please check the status of this device + as some features may stop functioning.' title: Device Alert diff --git a/packages/hallway.yaml b/packages/hallway.yaml index b93480a4..d79ed0e5 100644 --- a/packages/hallway.yaml +++ b/packages/hallway.yaml @@ -10,7 +10,8 @@ input_number: automation: - alias: Hallway light toggle - # Can be improved, examples at https://github.com/TheFes/HA-configuration/blob/main/include/automation/01_first_floor/floris/shelly_floris.yaml + # Can be improved, examples at + # https://github.com/TheFes/HA-configuration/blob/main/include/automation/01_first_floor/floris/shelly_floris.yaml trigger: - platform: event event_type: esphome.button_pressed