-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Update the Namron thermostat socket plug 4512749-N to operate as thermostat #7097
base: master
Are you sure you want to change the base?
Conversation
…unctionality to opperate as Thermostat. I have been running this as an external converter for some time, and has modified the code inn to the source.
src/devices/namron.ts
Outdated
@@ -96,6 +111,80 @@ const tzLocal = { | |||
} | |||
}, | |||
} satisfies Tz.Converter, | |||
|
|||
namronPlugg: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding from/toZigbee and exposes, can you use the new modernExtend
instead? Example
binary({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have a look at it, but I have never programmed in java script before, but I am still learning :-) , so it might take some time
Updated to use modern extend where it is posible
Updated model of namron outlet socket to operate as thermostat. This time using modern extent where it is possible
Updated model of namron outlet socket to operate as thermostat. This time using modern extent where it is possible
Updated model of namron outlet socket to operate as thermostat. This time using modern extent where it is possible
Updated model of namron outlet socket to operate as thermostat. This time using modern extent where it is possible
Update namron thermostat outlet to operate as thermostat
Updated namron thermostat outlet socket to operate as thermostat
Updated definition for Namron 4512749-N thermostat outlet socket to actually operate as a thermostat
I have tested this as an external converter for some time, and seems to be operating as expected. The thermostat outlet socket can now operate as a thermostat by setting the manufacturer specific attribute. I have added the necessary fields to set the temperature and calibration and also to switch between thermostat mode and on/off mode.