HA: Difference between revisions

From Network Security Wiki
Content added Content deleted
No edit summary
Line 25: Line 25:


== Telegram ==
== Telegram ==
'''
####################################################
####################################################
# Telegram #
# Telegram #
Line 32: Line 33:
telegram_bot:
telegram_bot:
- platform: polling
- platform: polling
api_key: "1183862178:AAGfLdGrWFmCrTB53OhVF5eKxwF8s9_03Vk"
api_key: "xxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxx"
allowed_chat_ids:
allowed_chat_ids:
- 1058880213 # Rpiwz Personal Chat
- xxxxxxxx # Rpiwz Personal Chat
- -623610061 # My Family Group Chat
- -xxxxxxxx # My Family Group Chat


# Notifier
# Notifier
notify:
notify:
- platform: telegram
- platform: telegram
name: "rpiwz"
name: "mychat"
chat_id: 1058880213
chat_id: xxxxxxxxxxx


- platform: telegram
- platform: telegram
name: "myfamily"
name: "mygroup"
chat_id: -623610061
chat_id: -xxxxxxxxx
'''


= Sensors =
= Sensors =

Revision as of 18:27, 25 April 2024


Installation

HomeAssist Docker Install

Source: home-assistant.io

  • Installation:
sudo docker run -d \
 --name homeassistant \
 --privileged \
 --restart=unless-stopped \
 -e TZ=Europe/Dublin \
 -v /home/pi/homeassist/config:/config \
 -v /run/dbus:/run/dbus:ro \
 --network=host \
 ghcr.io/home-assistant/home-assistant:stable

Notifications

Telegram

  1. Telegram #
  1. Telegram Bot

telegram_bot:

 - platform: polling
   api_key: "xxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxx"
   allowed_chat_ids:
     - xxxxxxxx     # Rpiwz Personal Chat
     - -xxxxxxxx     # My Family Group Chat
  1. Notifier

notify:

 - platform: telegram
   name: "mychat"
   chat_id: xxxxxxxxxxx
 - platform: telegram
   name: "mygroup"
   chat_id: -xxxxxxxxx

Sensors

CPU Temperature

  1. Command Line #
  2. Pi Temperature

command_line:

 - sensor:
     command: "cat /sys/class/thermal/thermal_zone0/temp"
     name: HA CPU Temperature
     unit_of_measurement: "      C"
     value_template: 'Template:Value'



References





{{#widget:DISQUS |id=networkm |uniqid=HA |url=https://aman.awiki.org/wiki/HA }}