Home Assistant

Quellen:

HASS Docker Container in Proxmox LXC

#pve lxc conf
...
lxc.cgroup.devices.allow: c 189:4 rwm
lxc.mount.entry: /dev/bus/usb/001/005 dev/bus/usb/001/005 none bind,optional,create=file
lxc.cgroup.devices.allow: c 166:* rwm
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file

https://www.home-assistant.io/integrations/rflink

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
 
# Example configuration.yaml entry
rflink:
  port: /dev/ttyACM0
  wait_for_ack: false
  ignore_devices:
    - newkaku_000001_01
    - digitech_*
 
# Example configuration.yaml entry
light:
  - platform: rflink
    automatic_add: true
sensor:
  - platform: rflink
    automatic_add: true

ESP433 Schalter

https://www.home-assistant.io/integrations/switch.command_line

# Example configuration.yaml entry
switch:
  - platform: command_line
    switches:
      licht_wohnzimmer:
        command_on: 'curl http://esp433.tiktaktux.eu/?pin=Set_B_on'
        command_off: 'curl http://esp433.tiktaktux.eu/?pin=Set_B_off'

lovelace icons

https://pictogrammers.github.io/@mdi/font/2.0.46/ –> in lovelace edit: –> hass:<icon-name>

shell command

apt install wakeonlan

# Example configuration.yaml entry
shell_command:
  vdrwol: 'wakeonlan <MAC>'

in lovelace

#lovelance
type: button
tap_action:
  action: call-service
  service: shell_command.vdrwol
name: VDR wecken
icon: 'hass:television'

mqtt für tasmota

shelly

TODO:

logs2ram

https://juanjchong.com/blog/hassio-raspbian-log2ram

[Sun Apr 18 09:39:37 2021] device veth81d5b12 entered promiscuous mode
[Sun Apr 18 09:39:37 2021] hassio: port 1(veth81d5b12) entered blocking state
[Sun Apr 18 09:39:37 2021] hassio: port 1(veth81d5b12) entered forwarding state
[Sun Apr 18 09:39:37 2021] IPv6: ADDRCONF(NETDEV_CHANGE): hassio: link becomes ready
[Sun Apr 18 09:39:37 2021] hassio: port 1(veth81d5b12) entered disabled state
[Sun Apr 18 09:39:37 2021] eth0: renamed from veth9fe6497
[Sun Apr 18 09:39:38 2021] IPv6: ADDRCONF(NETDEV_CHANGE): veth81d5b12: link becomes ready
[Sun Apr 18 09:39:38 2021] hassio: port 1(veth81d5b12) entered blocking state
[Sun Apr 18 09:39:38 2021] hassio: port 1(veth81d5b12) entered forwarding state
[Sun Apr 18 09:39:38 2021] docker0: port 1(veth7e81d97) entered blocking state
[Sun Apr 18 09:39:38 2021] docker0: port 1(veth7e81d97) entered disabled state
[Sun Apr 18 09:39:38 2021] device veth7e81d97 entered promiscuous mode
[Sun Apr 18 09:39:38 2021] docker0: port 1(veth7e81d97) entered blocking state
[Sun Apr 18 09:39:38 2021] docker0: port 1(veth7e81d97) entered forwarding state
[Sun Apr 18 09:39:38 2021] docker0: port 1(veth7e81d97) entered disabled state
[Sun Apr 18 09:39:38 2021] hassio: port 2(veth9fa1c41) entered blocking state
[Sun Apr 18 09:39:38 2021] hassio: port 2(veth9fa1c41) entered disabled state
[Sun Apr 18 09:39:38 2021] device veth9fa1c41 entered promiscuous mode
[Sun Apr 18 09:39:38 2021] hassio: port 2(veth9fa1c41) entered blocking state
[Sun Apr 18 09:39:38 2021] hassio: port 2(veth9fa1c41) entered forwarding state
[Sun Apr 18 09:39:38 2021] eth0: renamed from vethffd0f18
[Sun Apr 18 09:39:38 2021] hassio: port 2(veth9fa1c41) entered disabled state
[Sun Apr 18 09:39:38 2021] IPv6: ADDRCONF(NETDEV_CHANGE): veth7e81d97: link becomes ready