https://github.com/mfa/ha-sensors
Sensors pushing to Home Assistant
https://github.com/mfa/ha-sensors
Last synced: 4 months ago
JSON representation
Sensors pushing to Home Assistant
- Host: GitHub
- URL: https://github.com/mfa/ha-sensors
- Owner: mfa
- Created: 2023-10-29T11:40:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-19T17:28:24.000Z (over 1 year ago)
- Last Synced: 2025-03-29T03:32:10.211Z (about 1 year ago)
- Language: Python
- Size: 46.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## sensors used in home assistant
This is a list of the sensors I use with raspberry PIs to push to homeassistant.
The repo exists primarily as a reference for me.
### homeassistant config structure
In my ``configuration.yaml`` I have this line:
```
template: !include_dir_merge_list includes/templates
```
and in ``includes/templates`` extra files for sensors (sometimes combined for a raspberry).
The structure in the sensor yaml files have to be lists, i.e. for a bme280:
```
- trigger:
- platform: webhook
webhook_id: !secret zero6-bme
allowed_methods:
- POST
local_only: false
unique_id: "zero6"
sensor:
- name: "zero6 Temperature"
state: "{{ trigger.json.temperature }}"
unit_of_measurement: "°C"
device_class: temperature
unique_id: "zero6_temperature"
- name: "zero6 Humidity"
state: "{{ trigger.json.humidity }}"
unit_of_measurement: "%"
device_class: humidity
unique_id: "zero6_humidity"
- name: "zero6 Pressure"
state: "{{ trigger.json.pressure }}"
unit_of_measurement: "hPa"
device_class: atmospheric_pressure
unique_id: "zero6_pressure"
```