mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-01 02:40:31 +02:00
Update README.md
This commit is contained in:
@@ -38,6 +38,40 @@ ssl: true/false (for Ingress)
|
|||||||
certfile: fullchain.pem #ssl certificate
|
certfile: fullchain.pem #ssl certificate
|
||||||
keyfile: privkey.pem #sslkeyfile
|
keyfile: privkey.pem #sslkeyfile
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Integration in home assistant
|
||||||
|
--------------
|
||||||
|
Integration with HA can be done with the [rest platform](https://www.home-assistant.io/integrations/rest) in configuration.yaml.
|
||||||
|
|
||||||
|
Two types of api endpoints are available:
|
||||||
|
- Summary data : http://YOURIP:ADDONPORT/api/summary
|
||||||
|
- Detailed data : http://YOURIP:ADDONPORT/api/WWN/details
|
||||||
|
|
||||||
|
For the detailed data, wmn can be found for each hdd within the scrutiny app. For example for me : http://192.168.178.23:8086/api/device/0x50014ee606c14537/details
|
||||||
|
|
||||||
|
Example to get data from the first hdd.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
rest:
|
||||||
|
- verify_ssl: false
|
||||||
|
scan_interval: 60
|
||||||
|
resource: http://YOURIP:ADDONPORT/api/summary
|
||||||
|
sensor:
|
||||||
|
- name: "HDD disk 1"
|
||||||
|
json_attributes_path: "$.data[0].smart_results[0]"
|
||||||
|
value_template: "OK"
|
||||||
|
json_attributes:
|
||||||
|
- "device_wwn"
|
||||||
|
- "date"
|
||||||
|
- "smart_status"
|
||||||
|
- "temp"
|
||||||
|
- "power_on_hours"
|
||||||
|
- "power_cycle_count"
|
||||||
|
- "ata_attributes"
|
||||||
|
- "nvme_attributes"
|
||||||
|
- "scsi_attributes"
|
||||||
|
```
|
||||||
|
|
||||||
# Illustration
|
# Illustration
|
||||||
--------------
|
--------------
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user