Home Automation/Manual sensor config

From Cricalix.Net
Revision as of 05:00, 21 September 2023 by Cricalix (talk | contribs) (Created page with "The emonTx publishes via HTTP calls to the emoncms service. HomeAssistant can read that data back using the JSON API of emoncms. A bit of a round trip, but it allows for the calculations before the data is read. This goes under the sensor key. - platform: emoncms api_key: 1exxx url: https://emoncms.cricalix.net/ id: 1 include_only_feed_id: - 5 - 16 sensor_names: 5: "EmonCMS use_kwh" 16: "EmonCMS vrms" To get sensor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The emonTx publishes via HTTP calls to the emoncms service. HomeAssistant can read that data back using the JSON API of emoncms. A bit of a round trip, but it allows for the calculations before the data is read. This goes under the sensor key.

 - platform: emoncms
   api_key: 1exxx
   url: https://emoncms.cricalix.net/
   id: 1
   include_only_feed_id:
       - 5
       - 16
   sensor_names:
       5: "EmonCMS use_kwh"
       16: "EmonCMS vrms"

To get sensor details about the host that HomeAssistant is running on, this goes under the sensor key.

 - platform: systemmonitor
   resources:
       - type: memory_use_percent
       - type: disk_use_percent
       - type: load_1m
       - type: load_5m
       - type: processor_use
       - type: processor_temperature
       - type: swap_use_percent

Under the mqtt key, a direct read of the latest value published from the espwifi module to a topic on the MQTT broker running on the HomeAssistant box.

   - sensor:
       state_topic: "emon/power/ct1"
       device_class: power
       name: "Instantaneous Power"
       device:
           configuration_url: http://espwifi3012.home.arpa/
           manufacturer: "Open Energy Monitor"
           model: v3
           name: emonTx
           identifiers: "gm.espwifi.emontx.ct1"
           sw_version: 3.1.4
       state_class: measurement
       unit_of_measurement: W