Hello
I wonder if There is constants or something equivalent like that in esphome?
Thank you
Hello
I wonder if There is constants or something equivalent like that in esphome?
Thank you
Like a template sensor?
sensor:
- platform: template
name: "Constant Value"
lambda: |-
return 42; # your constant value here
name: "Life the Universe and Everything"
What problem are you trying to solve?
If it’s about reducing duplication in your config, then look at Configuration Types — ESPHome.
Thank you.
Yes this is what i exactly need.
I want to have a singgel place for configuration values so i can easily change between test and working configuration.
That sentence would have fit well in your first post like described in the post “How to ask a good question”: