HASwitchPlate / openHASP-custom-component

Home Assistant custom component for openHASP
https://www.openhasp.com
MIT License
51 stars 12 forks source link

Sunton 8048S050C failing to integrate with Home assistant #114

Closed cmckibben closed 8 months ago

cmckibben commented 8 months ago

Perform all steps below and tick them with [x]

Describe the bug

I bring the Sunton device up, OpenHASP is working on the device with no apparent issues. After I trigger discovery Homeassistant will discover the device but is usable to add the device due to it seeing no devices or entities.

OpenHASP component is 0.7.1 from HACS Homeassistant is version 2024.1.3. I had the same issue with the 0.7.0 component as well.

To Reproduce

discovery over telnet

Expected behavior

Sunton device gets added to the list of OpenHASP devices.

Screenshots or video

sunton00


#### OpenHASP device info page openHASP -- Version | 0.7.0-rc9 c200edf Build DateTime | Jan 17 2024 21:18:58 UTC Environment | sunton-8048s050c_16MB Uptime | 1m 41s Idle | short Active Page | 2 Free Heap | 69.51 KiB Free Block | 57.98 KiB Fragmentation | 16% PSRam Free | 7.22 MiB PSRam Size | 7.99 MiB Total | 64.00 KiB Free | 7.22 KiB Fragmentation | 3% Server | 192.168.0.202 Username | mqtt Client ID | sunton00_710e24 Status | Connected Received Published | 8 Failed #### telnet session running discovery ``` Welcome open____ _____ _____ _____ | | | _ | __| _ | | | |__ | __| |__|__|__|__|_____|__| Home Automation Switch Plate Open Hardware edition v0.7.0-rc9 [09:22:45.789][61428/70612 13][ 7232/ 7396 3] TELN: Client login from 192.168.0.201 discovery #discover[09:22:49.356][59380/77716 23][ 7232/ 7396 3] MSGR: discovery #[09:22:56.791][59380/77932 23][ 7232/ 7396 3] MQTT PUB: discovery => {"node":"sunton00","mdl":"Sunton 1-8048S050C","mf":"openHASP","hwid":"3030f9710e24","pages":12,"sw":"0.7.0-rc9","uri":"http://192.168.0.146","input":{},"power":[],"light":[],"dim":[]} # ``` #### screenshots of discovery from homeassistant --> ![discovery1](https://github.com/HASwitchPlate/openHASP/assets/151051216/b4057a27-52bb-4ac6-a961-310d286d6110) ![discovery2](https://github.com/HASwitchPlate/openHASP/assets/151051216/041afc0c-90d3-471d-a39b-54409d429acf) ![discovery3](https://github.com/HASwitchPlate/openHASP/assets/151051216/d97e9acb-5bea-48b9-9688-85b37867fe97)
cmckibben commented 8 months ago

Further digging I found this in the homeassistant log: No YAML configuration for sunton00, please create an entry under 'openhasp' with the slug: sunton00

cmckibben commented 8 months ago

Sigh, I fixed it, I forgot to put a .yaml on the configuration file.