Hi @vingerha ,
I checked the documentation multiple times.
It shows the syntax to use on the configuration.yaml
As far I know, when we split the yaml (use the !include), the syntax changes.
Also, I have other sensors for other platforms which work fine.
About the value_template, as far I understand reading the documentation, itās useful only to format the data incoming. My intention is save the data in raw format .
It Isnāt required for sensors.
Iāve enabled the debug mode and restarted.
It appears the engine ignored my declarations.
This is the part of my sensors.yaml (with linenumber).
Notice have a āintegrationā platform before "command_line
98
99 - platform: integration
100 source: sensor.tomada_j_potencia
101 name: Energia consumida acumulada - Tomada J Lava e Seca 8kg
102 unit_prefix: k
103 round: 2
104
105 - platform: integration
106 source: sensor.tomada_k_potencia
107 name: Energia consumida acumulada - Tomada K
108 unit_prefix: k
109 round: 2
110
111 - platform: command_line
112 name: CPFL Tarifa Vigencia Inicio
113 unique_id: cpfl_tarifa_vigencia_inicio
114 command: 'bash /config/root.bin/cpfl.tarifas/cpfl.tarifas.sh -s VigenciaIni '
115
116 - platform: command_line
117 name: CPFL Tarifa Vigencia Fim
118 unique_id: cpfl_tarifa_vigencia_fim
119 command: 'bash /config/root.bin/cpfl.tarifas/cpfl.tarifas.sh -s Vigenciafimi '
120
At the log, they just stopped to load my sensors on āsensor.tomada_k_potenciaā .
2025-01-10 16:20:53.890 INFO (MainThread) [homeassistant.components.sensor] Setting up integration.sensor
2025-01-10 16:20:53.891 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 82.79 and last_valid_state 82.79000000000000000000000000
2025-01-10 16:20:53.893 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.energia_consumida_acumulada_tomada_j_lava_e_seca_8kg, old_state=None, new_state=<state sensor.energia_consumida_acumulada_tomada_j_lava_e_seca_8kg=82.79; state_class=total, source=sensor.tomada_j_potencia, unit_of_measurement=kWh, icon=mdi:chart-histogram, friendly_name=Energia consumida acumulada - Tomada J Lava e Seca 8kg @ 2025-01-10T16:20:53.892624-03:00>>
2025-01-10 16:20:53.896 DEBUG (MainThread) [homeassistant.setup] Phase platform_setup for integration (281473211205888) took 5.81s (elapsed=5.81s) (wait_time=0.00s)
2025-01-10 16:20:53.899 DEBUG (MainThread) [homeassistant.components.mqtt.client] 192.168.5.2: unregister write 51
2025-01-10 16:20:53.900 INFO (MainThread) [homeassistant.components.sensor] Setting up integration.sensor
2025-01-10 16:20:53.902 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 178.45 and last_valid_state 178.4500000000000000000000000
2025-01-10 16:20:53.903 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.energia_consumida_acumulada_tomada_k, old_state=None, new_state=<state sensor.energia_consumida_acumulada_tomada_k=178.45; state_class=total, source=sensor.tomada_k_potencia, unit_of_measurement=kWh, icon=mdi:chart-histogram, friendly_name=Energia consumida acumulada - Tomada K @ 2025-01-10T16:20:53.902902-03:00>>
2025-01-10 16:20:53.906 DEBUG (MainThread) [homeassistant.setup] Phase platform_setup for integration (281473211206128) took 5.82s (elapsed=5.82s) (wait_time=0.00s)
2025-01-10 16:20:53.907 DEBUG (MainThread) [paho.mqtt.client] Received SUBACK
2025-01-10 16:20:53.908 DEBUG (MainThread) [homeassistant.helpers.translation] Cache miss for en: {āsmartthinq_sensorsā}
2025-01-10 16:20:53.909 DEBUG (MainThread) [paho.mqtt.client] Sending SUBSCRIBE (d0, m37) [(bāhomeassistant/event/+/+/configā, 0)]
2025-01-10 16:20:53.910 DEBUG (MainThread) [homeassistant.components.mqtt.client] 192.168.5.2: register write 51
Iām missing something here?