I haven’t found a real answer to this.
InfluxDB is setup correctly but it doesn’t store our solar panel values which come from a template sensor.
Any suggestions?
My config and sensor setup:
influxdb:
host: 192.168.1.xx
- platform: command_line
name: Solar_Status
command: 'curl "http://192.168.1.xxx/real_time_data.xml" 2>&1 | grep -E -m1 -o "<state>(.*)</state>" | sed -e "s,.*<state>\([^<]*\)</state>.*,\1,g"'
scan_interval: 3600
- platform: command_line
name: Solar_GridVoltage
# command: 'curl "http://192.168.1.xxx/real_time_data.xml" 2>&1 | grep -oPm1 "(?<=<v-grid>)[^<]+"'
# command: 'curl "http://192.168.1.xxx/real_time_data.xml" 2>&1 | grep -E -m1 -o "<v-grid>(.*)</v-grid>"'
command: 'curl "http://192.168.1.xxx/real_time_data.xml" 2>&1 | grep -E -m1 -o "<v-grid>(.*)</v-grid>" | sed -e "s,.*<v-grid>\([^<]*\)</v-grid>.*,\1,g"'
unit_of_measurement: "V"
scan_interval: 60
- platform: command_line
name: Solar_PowerActueel
command: 'curl "http://192.168.1.xxx/real_time_data.xml" 2>&1 | grep -E -m1 -o "<p-ac>(.*)</p-ac>" | sed -e "s,.*<p-ac>\([^<]*\)</p-ac>.*,\1,g"'
unit_of_measurement: "W"
scan_interval: 60
- platform: command_line
name: Solar_EnergieVandaag
command: 'curl "http://192.168.1.xxx/real_time_data.xml" 2>&1 | grep -E -m1 -o "<e-today>(.*)</e-today>" | sed -e "s,.*<e-today>\([^<]*\)</e-today>.*,\1,g"'
unit_of_measurement: "kWh"
scan_interval: 3600