Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for freezer device type #109

Closed
Bad-Magic opened this issue Oct 26, 2024 · 12 comments
Closed

Support for freezer device type #109

Bad-Magic opened this issue Oct 26, 2024 · 12 comments
Assignees

Comments

@Bad-Magic
Copy link

Looks like my new freezer isn't a supported device type. I've attached the device json returned from the API.

Would love to be able to alert on temperature. We just had a compressor failure and lost an entire freezer of food. :(
hubspace.zip

@Expl0dingBanana
Copy link
Collaborator

Oof that sucks. I had that happen recently and re-buying an whole freezer worth of stuff isnt fun. Let me take a look at the dump and get something out.

@Expl0dingBanana Expl0dingBanana self-assigned this Oct 27, 2024
@Expl0dingBanana
Copy link
Collaborator

Expl0dingBanana commented Oct 27, 2024

@Bad-Magic I am reviewing the dump and a bit confused on the "climate" control portion of functionality. Can you validate or fix these thoughts?

Fridge - This looks like 1-10 scale. Is this how the fridge is configured where you can only select a number and not a specific temperature?
Freezer - Does this go between -24F and -12F?

@Bad-Magic
Copy link
Author

Freezer is -11 to +10 F.
Cool is 34 to 50F
IMG_6237
IMG_6238

@Expl0dingBanana
Copy link
Collaborator

Expl0dingBanana commented Oct 27, 2024

ah sweet, they have some magic going on! I wonder if these are by default in C...

Fridge [1 to 10]
34F = ~1.11C
50F = 10C

Freezer [-24 to -12]:
-24F = ~-23.89C
10F = ~-12.2C

That makes sense. Two climate entities [fridge / freezer]+ binary sensor entities will define the device

@Expl0dingBanana
Copy link
Collaborator

Upon reviewing the dump some more (and partial implementation), it never reports the current temperature, just what the target temp is. I think this device will be binary sensors + number (I have no idea on this but it may work). That way you can adjust the temperature and see if its alerting.

@Bad-Magic
Copy link
Author

No temperature sensor? Boo.

Let me know how I can help test or debug. Happy to make the time.

@Expl0dingBanana
Copy link
Collaborator

@Bad-Magic Did you want to be able to set the temp, or are you more concerned with seeing alerts? I modified the data so MCU would should as problematic for the screenshot.
image

@Bad-Magic
Copy link
Author

I don’t think I would ever care to adjust the temperature. I really only want alerts if something has gone awry.

@Expl0dingBanana
Copy link
Collaborator

Add freezer diagnostics to HA

  • Goto HACS within HA
  • Click Hubspace-HomeAssistant
  • Click the triple dots on the top-left
  • Click Update Information
  • Click the triple dots on the top-left
  • Click Redownload
  • Click Show beta versions
  • Select dev-freezer
  • Click DOWNLOAD
  • Restart HA

Let me know if anything doesnt work or you want something modified

@Expl0dingBanana
Copy link
Collaborator

@Bad-Magic Did the beta version solve your issue?

@Bad-Magic
Copy link
Author

Entities show up. Logs look clean. I'm not going to trigger an overtemp given I filled it with food.
image

Anything else you want me to poke at?

@Expl0dingBanana
Copy link
Collaborator

Nope, perfect! I will get this merged to main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants