Hi,
i build a custom controller for my led-bow. It litstens to specfic keywords.
And i pass them using the value_json but this causes my system to be instable (or at least i think/hope so)
What can i do to fix this?
This is the error/warning i have been reciving
Logger: homeassistant.helpers.template
Source: helpers/template.py:2742
First occurred: October 31, 2024 at 09:55:52 (50887 occurrences)
Last logged: 13:41:33
Template variable error: 'value_json' is undefined when rendering '{{value_json.effect}}'
Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
Template variable warning: 'state' is undefined when rendering '{{ state }}'
Template variable warning: 'brightness' is undefined when rendering '{{ brightness }}'
Template variable warning: 'effect' is undefined when rendering '{{effect}}'
Here is the configuration:
- unique_id: Temp-Lights
name: "Temperature Lights"
state_topic: "home/livingroom/temp-lights/status"
command_topic: "home/livingroom/temp-lights/switch"
brightness_state_topic: "home/livingroom/temp-lights/brightness/status" # Bright status
brightness_command_topic: "home/livingroom/temp-lights/brightness/set" #Brightness setter
brightness_scale: 100 #Setting the max brightness value.
availability:
- topic: "home/livingroom/temp-lights/available"
payload_available: "online" # Add payload_available
payload_not_available: "offline" #
mode: "latest"
color_temp_command_topic: "home/livingroom/temp-lights/temp/set" #Send temperature in mirads
color_temp_state_topic: "home/livingroom/temp-lights/temp/status" #Here it recives data from arduino
#effect: true
effect_command_topic: "home/livingroom/temp-lights/effect/set"
effect_state_topic: "home/livingroom/temp-lights/effect/state"
effect_value_template: "{{value_json.effect}}"
effect_list:
- "None"
- "Sun"
#state_value_template: "{{ state }}"
payload_on: "ON"
payload_off: "OFF"
brightness_value_template: "{{ value_json.brightness }}"
min_mireds: 154
max_mireds: 370
qos: 0
optimistic: false