tuya-home-assistant icon indicating copy to clipboard operation
tuya-home-assistant copied to clipboard

Sunbeam Heating Bedding (Blanket) (unsupported)

Open RJ-Make opened this issue 2 years ago • 12 comments

Device normal info

  • Sunbeam
  • Dual Zone (Queen / King) Connected Heating Bedding (Blanket)

Device info (please complete the following information, which can be found in log): like this:

I need some help here, I looked and could not find any similar entries in the log.

Device specifications (please complete the following information, which can be found in log): Same device's id, like this:

I need some help here again, as I don't see this information in the logs. I do have access to debuging on Tuya's dev site, but not sure what is needed.

RJ-Make avatar Jan 23 '22 16:01 RJ-Make

It appears that this works with LocalTuya if you want to try that. Here is a post about how to set it up. https://community.home-assistant.io/t/integration-with-sunbean-wifi-heated-mattress-pad/362588/3

joelamont2 avatar Jan 25 '22 07:01 joelamont2

Thanks, I will look into it.

RJ-Make avatar Jan 27 '22 22:01 RJ-Make

Yesterday, Home Assistant 2022.2 was released and it contains a new diagnostic tool.

There is now a "Download Diagnostics" button on each Tuya device on the device page. Clicking that button will download diagnostics information for that specific device. Drag the downloaded file into this issue.

This will help us learn about your device and provide details for implementing/adding support.

Thanks!

frenck avatar Feb 03 '22 08:02 frenck

Wow, now that is a VERY useful new feature, especially for those of us who are new to all this.

tuya-94ee0895011d98ae6c551589e95c4fac-Sunbeam Bedding-ea7b903bfd965562651b9953e47dbcbf.json.txt

RJ-Make avatar Feb 03 '22 20:02 RJ-Make

Thanks for sharing that @RJ-Make! That is extremely helpful. I will add this to my list of things to do and fix.

frenck avatar Feb 03 '22 21:02 frenck

Looked at this, is seems like this device is not following the documented standards:

https://developer.tuya.com/en/docs/iot/f?id=K9gf45zyt7sco

For example, according to specifications, it should provide a temperature setting, but your device doesn't.

For that reason, I'm at this point unsure how to support or implement this device.

frenck avatar Feb 07 '22 09:02 frenck

I see what you're saying. The blanket doesn't have an actual temp setting, It uses temp Levels. L, 2 through 9, H. I believe 1 is low and 10 is High

Anyway, thanks for looking into it.

RJ-Make avatar Feb 07 '22 10:02 RJ-Make

If this works in LocalTuya, shouldn’t there be a way to get it working in the actual Core integration?

gtbdf1 avatar Dec 26 '22 04:12 gtbdf1

If this works in LocalTuya, shouldn’t there be a way to get it working in the actual Core integration?

You would think so.

RJ-Make avatar Dec 26 '22 09:12 RJ-Make

Here are the entities if this helps, @frenck entities: - platform: switch friendly_name: Master Power id: 1 - platform: switch friendly_name: Side A Power id: 14 - platform: switch friendly_name: Side B Power id: 15 - platform: switch friendly_name: Master Preheat Power id: 8 - platform: switch friendly_name: Side A Preheat id: 24 - platform: switch friendly_name: Side B Preheat id: 25 - platform: select friendly_name: Master Heat Level id: 4 select_options: level_1;level_2;level_3;level_4;level_5;level_6;level_7;level_8;level_9;level_10 select_options_friendly: 1;2;3;4;5;6;7;8;9;10 - platform: select friendly_name: Side A Heat Level id: 20 select_options: level_1;level_2;level_3;level_4;level_5;level_6;level_7;level_8;level_9;level_10 select_options_friendly: 1;2;3;4;5;6;7;8;9;10 - platform: select friendly_name: Side B Heat Level id: 21 select_options: level_1;level_2;level_3;level_4;level_5;level_6;level_7;level_8;level_9;level_10 select_options_friendly: 1;2;3;4;5;6;7;8;9;10 - platform: select friendly_name: Side A Set Timer id: 26 select_options: (30m;1h;1h30m;2h;2h30m;3h;3h30m;4h;4h30m;5h;5h30m;6h;6h30m;7h;7h30m;8h;8h30m;9h;9h30m;10h;Stay_On) select_options_friendly: (.5 hours;1 hour;1.5 hours;2 hours;2.5 hours;3 hours;3.5 hours;4 hours;4.5 hours;5 hours;5.5 hours;6 hours;6.5 hours;7 hours;7.5 hours;8 hours;8.5 hours;9 hours;9.5 hours;10 hours;24 hours) - platform: select friendly_name: Side B Set Timer id: 27 select_options: (30m;1h;1h30m;2h;2h30m;3h;3h30m;4h;4h30m;5h;5h30m;6h;6h30m;7h;7h30m;8h;8h30m;9h;9h30m;10h;Stay_On) select_options_friendly: (.5 hours;1 hour;1.5 hours;2 hours;2.5 hours;3 hours;3.5 hours;4 hours;4.5 hours;5 hours;5.5 hours;6 hours;6.5 hours;7 hours;7.5 hours;8 hours;8.5 hours;9 hours;9.5 hours;10 hours;24 hours) - platform: sensor friendly_name: Side A Auto Off Timer id: 28 unit_of_measurement: "seconds" - platform: sensor friendly_name: Side B Auto Off Timer id: 29 unit_of_measurement: "seconds"

gtbdf1 avatar Dec 26 '22 21:12 gtbdf1

I created a pull request to add support for the sunbeam heated mattress pad (https://github.com/home-assistant/core/pull/84869). It looks like my Sunbeam dual zone mattress pad uses the same configuration as the blanket.

You can test this locally by copying the homeassistant/components/tuya folder from that pull request (branch) to your installations custom components folder and restarting.

chuckdeal97 avatar Jan 09 '23 02:01 chuckdeal97

Side A Auto Off Timer

This saved me an immense amount of work. Thank you very much for adding this

flashadams avatar Jan 12 '24 03:01 flashadams