This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sensor: | |
- platform: tcp | |
host: <CONNY_IP> | |
port: 4000 | |
payload: "{'cmd':'GET_VALUE'}" | |
name: "CO2 Ampel" | |
- platform: template | |
sensors: | |
co2_value: | |
friendly_name: "CO2 Wert" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- platform: rest | |
resource: http://[DEVICE_IP]/ai?command=getDeviceStatus | |
name: 'V-Zug CookTopInduktion V6000' | |
authentication: digest | |
username: !secret vzug.username | |
password: !secret vzug.password | |
json_attributes: | |
- DeviceName | |
- Serial | |
- Inactive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- alias: "Turn on light with random color" | |
id: babc0ffa-622e-450a-a8c4-8dcddbb7e1f3 | |
initial_state: True | |
trigger: | |
platform: sun | |
event: sunset | |
offset: "-00:15:00" | |
action: | |
service: light.turn_on | |
entity_id: light.hue_color_table_1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set tage = ["Sonntag", "Montag", "Dìenstag", "Mìttwoch", "Donnerstag", "Freitag", "Samstag"] %} | |
{% set dayIndex = as_timestamp(state_attr('weather.basel','forecast').0.datetime) | timestamp_custom("%w") | int %} | |
{% set wochentag = tage[dayIndex] %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in configuration.yaml | |
rest_command: | |
dingz_led: | |
url: http://DINGZ_IP/api/v1/led/set | |
method: POST | |
payload: 'action={{ action }}&color={{ color }}&mode=rgb' | |
content_type: 'application/x-www-form-urlencoded; charset=utf-8' | |
# use it as service | |
- service: rest_command.dingz_led |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add following line to /etc/rc.local | |
python /home/pi/scripts/shutdown.py & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- alias: "Let's Encrypt Renewal" | |
trigger: | |
platform: time | |
at: '02:30:00' | |
action: | |
- service: hassio.addon_restart | |
data: | |
addon: core_letsencrypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ultrasonic Saltlevel sensor | |
# Source: https://adonno.com/salt-level-sensor/ | |
esphome: | |
name: salt_level_sensor | |
platform: ESP8266 | |
board: d1_mini | |
# WiFi connection, replace these with values for your WiFi. | |
wifi: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// day | |
("0" + dateObj.getDate()).slice(-2) | |
// month | |
("0" + (dateObj.getMonth() + 1)).slice(-2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set( $integer = 0 ) | |
#set( $castedInt = $integer.parseInt($string) ) |
NewerOlder