HI. I use this sketch to my lisght but in Home Assistant it show me it as SWITCH. Is any chance to change it in mysensors sketch to show in Home Assisnatnt as LIGHT ?
Same issue here. HA receives data from Ethernet Gateway for only a few minutes and then:
DEBUG (MainThread) [mysensors.gateway_tcp] Connection lost with <_SelectorSocketTransport closing fd=42 read=idle write=<idle, bufsize=0>>
I also have MYSController connected to the GW and it remains connected. There is an open issue as others are also having the same problem. Am wondering if anyone here is having success with Ethernet Gateway connected to HA.
Please read carefully documentation for HA. https://www.home-assistant.io/integrations/mysensors/
You need to send initial state of your sensors. There is example code for doing it. Basically you check in loop if the node just started and send some values to HA. After that your sensor will appear in HA.
Thanks for the response. Can you be more specific about how to request the status from the node?
My understanding is the request format is:
request (Child_ID, VariableType);
But if the Home Assistant entity that I want to request the status of is not a MySensors entity it will not have a Child_ID. So how do I format the request statement?