Closed RootShell-coder closed 4 years ago
I never set the default values in the constructor. If the default value is missing in homie.setup, homie goes into config mode.
I always implement a method beforeHomieSetup()
which does stuff like this and which is called in setup after the node's constructor and before homie.setup.
see:
exactly, I can see that this is a constructor. Need more rest. sorry.
I took the code from close issue: #655 and this works great. fills in the field with the default value in web ui_bundle. I am trying to do the same but for the temperature sensor.
but the sensorsInterval field remains empty.
Although at the same time this code perfectly fills the pingInterval field with the default value.
I'm at a loss, what magic was used for ping?
Sorry if this question has already been asked. Thank you