Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.87k stars 1.66k forks source link

Namron thermostat outlet plug - Add support for thermostat mode #19324

Open slippern1 opened 11 months ago

slippern1 commented 11 months ago

What happened?

The Namron thermostat outlet plug (4512749-N) does support thermostat mode, but this is not added in z2m.

image image

Can someone add this support?

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.33.1

Adapter firmware version

20210708

Adapter

zStack3x0

Debug log

No response

ok-67 commented 11 months ago

I have this plugg. Using ZHA it is reported as a thermostat outlet plug and it is possible to set the wanted temperature. However out of the box it only operates as a regular on/off plug, but when setting the proprietary attribute at 0x1000 to 1 it operates nicely as a thermostat outlet plug.

I have tried to make an external converter file for it, but for some strange reason the external_converters: option is automatically removed from my configuration file.

ok-67 commented 11 months ago

Namronthermostatplug

exentrik commented 11 months ago

Namronthermostatplug

Thank you @ok-67 The problem was zha toolkit had a write problem in its current version (worked a week later).

I copied the existing driver and made an external converter for Z2M , and then tried to add code for thermostat without success.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

Kjelljk commented 4 months ago

Trying to write to cluster 0x0000 and attribute 0x1000 with dev console, but have not figured it out. Any tips how to write to this attribute?

After setting attribute to "1" for HVAC mode, and rebooting the device it shall be in thermostat mode. I can then try to make a profile for this mode.

ok-67 commented 4 months ago

The dew console dont support this. I have made some code that do work. However I am new to type script and the code are not polished enough to be included, in short I am waiting for someone to write a modern extend for the thermostat module, then I will update my code and hopefully it can be included in Z2M

Kjelljk commented 4 months ago

The dew console dont support this. I have made some code that do work. However I am new to type script and the code are not polished enough to be included, in short I am waiting for someone to write a modern extend for the thermostat module, then I will update my code and hopefully it can be included in Z2M

Share?

ok-67 commented 4 months ago

plugg.zip This is the plugg.js that I use as an external converter for the namron plugs in my homeassistant installations. This works OK, but for some of my plugs I had to reconfigure them after enabling thermostat mode before I could access all the parameters.

On my computer I am running a separate Z2M installation under Ubuntu for development purposes. There I have a different version that I am working on. There I am using modern extend for some of the parameters, but not for the thermostat parameter. I hope someone will make a modern extend for the thermostat so I can implement that one also. Then I hope it should be appropriate for an "official" version.