User Tools

Site Tools


tamiwiki:other:power

This is an old revision of the document!


Electrical current sensor

TODO:

  • finish mqtt integration
  • sum the three current sensors to one link
  • kill all our consumers and calculate the base (we share power with upstairs)
  • remove (or integrate to ) the default energy tab
  • integrate $/hour to the page

what we haz

our current sensor is clamped onto our three main arteries and is streamed using rtl_433
running on the devdesk pc (on electric bench) to the energy tab of tami's HomeAssistant (a.k.a hass) .

mqtt

push it to over mqtt, using

TODO: make this systemd service, currently running on tmux using byobu

need remote access, send your tailscale

devdesk@10.81.2.121:~$ rtl_433 | tee >(mosquitto_pub -h 10.81.2.3 -u tami -P tamispace -t rtl_433 -l) 

hass

TODO: re-implement

and from there to the homeassistant

in hass, as our sensor does not conform to the standard power_w expected output.
a solution was found, and integrated to hass configuration.yaml

tl;dr add the following to the config/configuration.yaml
and reload the yaml (Developer Tools/yaml)

mqtt:
  sensor:
    - name: cc_power0
      state_topic: rtl_433/74930c0d-rtl433/devices/CurrentCost-TX/3202/power0_W
      device_class: power
      unit_of_measurement: W
      state_class: measurement
      value_template: "{{ value | round() }}"

    - name: cc_power1
      state_topic: rtl_433/74930c0d-rtl433/devices/CurrentCost-TX/3202/power1_W
      device_class: power
      unit_of_measurement: W
      state_class: measurement
      value_template: "{{ value | round() }}"

    - name: cc_power2
      state_topic: rtl_433/74930c0d-rtl433/devices/CurrentCost-TX/3202/power2_W
      device_class: power
      unit_of_measurement: W
      state_class: measurement
      value_template: "{{ value | round() }}"
tamiwiki/other/power.1689011181.txt.gz · Last modified: 2023/07/10 20:46 by yair