mancioshell / risco-mqtt-home-assistant

Node Risco Mqtt client for Home Assistant
MIT License
7 stars 7 forks source link

Zones with multiple spaces do not auto discover #4

Open francois-dotnet opened 4 years ago

francois-dotnet commented 4 years ago

I suspect that zones with more than one space does not create an appropriate nodeID as the replace method is not recursive? Perhaps something like zone.zoneName.split(' ').join('-') may work?

rob1981forest commented 4 years ago

i'm not using auto discovery as i dont want all my sensors in but i out of the 4 zones i have in one does not show up right. This has two spaces in it 'Front Window C' so the issue you mention here could be the problem but however i do have another one in and working fine 'Back Door C'..........a bit weird