- platform: rest resource: http://192.168.178.50/cnf?cmd=modbus&device=meter1&read=8058q name: "cFos Zählerstand" scan_interval: 10 device_class: energy unit_of_measurement: kWh state_class: total username: admin password: PASSWORD authentication: basic headers: User-Agent: Home Assistant Content-Type: application/json - platform: rest resource: http://192.168.178.50/cnf?cmd=modbus&device=meter1&read=8062d name: "cFos aktuelle Leistung" scan_interval: 15 device_class: power unit_of_measurement: W state_class: measurement timeout: 120 username: admin password: PASSWORD authentication: basic headers: User-Agent: Home Assistant Content-Type: application/json - platform: rest resource: http://192.168.178.50/cnf?cmd=modbus&device=evse&read=8095 name: "cFos aktueller Ladestrom" scan_interval: 15 timeout: 60 device_class: current unit_of_measurement: A state_class: measurement username: admin password: PASSWORD authentication: basic headers: User-Agent: Home Assistant Content-Type: application/json - platform: rest resource: http://192.168.178.50/cnf?cmd=modbus&device=evse&read=8092 name: "cFos aktueller Wallbox Zustand" scan_interval: 15 timeout: 120 username: admin password: PASSWORD authentication: basic headers: User-Agent: Home Assistant Content-Type: application/json # Template Sensor für die korrekte Darstellung vom Zählerstand, ebenfalls in der sensor.yaml; - platform: template sensors: cfos_zahler_gerundet: friendly_name: "cFos Zählerstand gerundet" unit_of_measurement: 'kWh' value_template: "{{ (states('sensor.cfos_zahlerstand') | float / 1000 ) }}"