Hello,
I am an IT technician and have little experience with programming and find it somewhat difficult to configure in the configuration yaml.
I have 2x MyStrom WIFI Switch to which PV modules are connected. I get the data current power and current temperature. but power consumption does not work. How can I “configure” it so that I get the power for the current day added up. So that I can also use it as an “energy” point for solar?
Can somebody help me with this topic?
Thanks!
BR Fabian
Current config for 1 Switch:
#PV1
rest:
- scan_interval: 10
resource: http://192.168.0.9/report
method: GET
sensor:
- name: "myStrom power"
value_template: '{{ value_json.power}}'
unit_of_measurement: 'W'
device_class: power
state_class: measurement
- name: "myStrom energy"
value_template: '{{ value_json.Ws}}'
unit_of_measurement: 'W'
state_class: measurement
device_class: power
- name: "myStrom relay"
value_template: '{{ value_json.relay}}'
- name: "myStrom temperature"
value_template: '{{ value_json.temperature}}'
sensor:
- platform: integration
source: sensor.mystrom_energy
name: myStrom energy consumption2
method: left
round: 4
homeassistant:
customize:
sensor.mystrom_energy_consumption2:
unit_of_measurement: 'Wh'
device_class: power