HA: Difference between revisions

Content added Content deleted
m (Changed protection settings for "HA": Excessive vandalism ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite)) [cascading])
Line 66: Line 66:
</pre>
</pre>





== Install HACS ==

sudo docker exec -it homeassistant bash
wget -O - https://get.hacs.xyz | bash -


== SSH Based Sensor ==

Goto Docker Container:
sudo docker exec -it homeassistant bash

Enable Keyless SSH Access:
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub pi@192.168.1.2
ssh-copy-id -i ~/.ssh/id_ed25519.pub pi@192.168.1.2

Test SSH Keyless from container:
ssh pi@192.168.1.2

Sensor Config:
<pre>
command_line:
- sensor:
command: "ssh pi@192.168.1.2 '/usr/bin/python3 /home/pi/homeassist/pmm_time_taken.py'"
name: PMM Time Taken
unit_of_measurement: "s"
value_template: '{{ value }}'
scan_interval: 86400
</pre>


<br />
<br />