diff --git a/docs/prepare_ha.md b/docs/prepare_ha.md index dad91b42..97ccec4b 100644 --- a/docs/prepare_ha.md +++ b/docs/prepare_ha.md @@ -109,14 +109,16 @@ template: data: type: daily target: - entity_id: weather.k3ll3r # change to your weather entity in this line + entity_id: weather.home # change to your weather entity response_variable: daily sensor: - name: Weather Forecast Daily unique_id: weather_forecast_daily - state: "{{ now().isoformat() }}" + state: "{{ states('weather.home') }}" # # change to your weather entity in this line attributes: - forecast: "{{ daily['weather.k3ll3r'].forecast }}" # change to your weather entity in this line + temperature: "{{ state_attr('weather.home', 'temperature') }}" # change to your weather entity + temperature_unit: "{{ state_attr('weather.home', 'temperature_unit') }}" # change to your weather entity + forecast: "{{ daily['weather.k3ll3r'].forecast }}" # change to your weather entity ``` ![image](https://github.com/joBr99/nspanel-lovelace-ui/assets/29555657/41f21db3-a6e2-4e4f-8dab-b9351ecd23e5)