rsampayo / sleepme_thermostat

SleepMe Thermostat integration is a custom component for Home Assistant
8 stars 1 forks source link

Suggestions #3

Closed mikesalz closed 1 month ago

mikesalz commented 1 month ago

Hi @rsampayo - So far this integration is working very well! I have a few questions/suggestions. I'm not going to pretend to know python very well, but if I am reading the code correctly it looks like the model and firmware version might be hard coded. I am wondering if the API can be used to get that data? There are some other informational fields available as well, like serial number, IP address, temperature unit, time zone, etc. Those are really just "nice to haves" but wouldn't have any impact on functionality.

image

rsampayo commented 1 month ago

Hey Mike, I like your attention to detail. That's correct. They are only a placeholder. Let me see what I can do.

rsampayo commented 1 month ago

I am going to try to add Firmware, mac, model and serial number to the device info. And then I might add IP, LAN IP, is_connected, timezone, brightness_level and display_temp_unit a sensors in a Diagnostic section.

mikesalz commented 1 month ago

I like your attention to detail

I think this translates to: I wish this guy would just leave me alone! :)

rsampayo commented 1 month ago

I like your attention to detail

I think this translates to: I wish this guy would just leave me alone! :)

Hahah, not at all. The complete opposite! Keep them coming. Just help me out with the testing.

mikesalz commented 1 month ago

You got it!

rsampayo commented 1 month ago

Ok Mike, give it a go.

mikesalz commented 1 month ago

hmmm... I downloaded the current code, deleted my sleepme_thermostat folder from custom_components, and then copied the new folder into it and restarted HA. Twice. But none of the new info is showing. I even verified that the values are in the python. Interestingly, the model and firmware version are now completely gone from the Device Info section. And I am not seeing any errors in the logs.

image

rsampayo commented 1 month ago

Can you delete your devices restart and re add. And turn on "debug log" and check the full log to see if you get errors.

mikesalz commented 1 month ago

Looking better!

image

mikesalz commented 1 month ago

Also - You may have already seen this in your research, but I found this page that discusses how to add logos.

https://developers.home-assistant.io/blog/2020/05/08/logos-custom-integrations/

rsampayo commented 1 month ago

Also - You may have already seen this in your research, but I found this page that discusses how to add logos.

https://developers.home-assistant.io/blog/2020/05/08/logos-custom-integrations/

Thats great, do you think you could create the icons with the needed specs?

mikesalz commented 1 month ago

I can give it a shot over the weekend

rsampayo commented 1 month ago

I can give it a shot over the weekend

Great, you pick the look.

rsampayo commented 1 month ago

I created an issue for the icon https://github.com/rsampayo/sleepme_thermostat/issues/2