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

essentials smart home thermostat converter #4909

Closed
wants to merge 5 commits into from

Conversation

TAKeanice
Copy link
Contributor

I have built this converter for the thermostat I own. Also, it is relevant for Koenkk/zigbee2mqtt#14239 . Please tell me if there are any aspects of how I built this that may have to be changed to make it into the main repository.

@Koenkk
Copy link
Owner

Koenkk commented Nov 7, 2022

Thanks for the PR. Could you refactor this to the new TuYa format? You can find an example here:

@TAKeanice
Copy link
Contributor Author

Thanks for the feedback, I will try to do it this weekend.

@github-actions
Copy link
Contributor

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

@github-actions github-actions bot added the stale label Dec 13, 2022
@TAKeanice
Copy link
Contributor Author

I am still committed to this, but need some more time.

@github-actions github-actions bot removed the stale label Dec 14, 2022
TAKeanice added a commit to TAKeanice/zigbee-herdsman-converters that referenced this pull request Dec 25, 2022
TAKeanice added a commit to TAKeanice/zigbee-herdsman-converters that referenced this pull request Dec 25, 2022
TAKeanice added a commit to TAKeanice/zigbee-herdsman-converters that referenced this pull request Dec 25, 2022
TAKeanice added a commit to TAKeanice/zigbee-herdsman-converters that referenced this pull request Dec 25, 2022
@TAKeanice
Copy link
Contributor Author

TAKeanice commented Dec 25, 2022

@Koenkk I think the error in the github checks is not in my changes

@TAKeanice
Copy link
Contributor Author

@Koenkk I think the error in the github checks is not in my changes

I was wrong, I didn´t know that it is now necessary to return an array of devices from a manufacturer.js file

@Koenkk
Copy link
Owner

Koenkk commented Dec 26, 2022

Can we harmonise the schedule expose with one of the existing supported TuYa thermostats?

@TAKeanice
Copy link
Contributor Author

Not sure whether that will provide a benefit, especially if the user is required to type a string in a specific format instead of a composite decomposing the parts of the schedule setpoints. I will take a look whether I can do anything useful with the standard functions. Is there anything I should look at for the effects of a composes definition besides the UI built into Zigbee2Mqtt?

@Koenkk
Copy link
Owner

Koenkk commented Dec 27, 2022

@TAKeanice the main goal is to unify the TuYa thermostat schedules. It would be great if existing converters could be re-used (to reduce code size and improve maintainability). This is indeed mainly for the UI.

@TAKeanice
Copy link
Contributor Author

Even though the tuya schedules get more harmonized by the string format "HH:MM/Degrees", it's pretty unusable for all home automation tools. It is too easy to mistype and enter invalid values.

I will happily introduce a new function to lib/tuya.js for a schedule using a composite of days with a nested composite of hour, minute and temperature for each setpoint, as for the essentials thermostat. If you wish, I can make that function generic such that it can be used in the tuyaDatapoints definition.

One thing I noted about the tuyaDatapoints definition is that the converter entry in a datapoint does not have a definition for get, so refreshing a value manually is not possible as with the former convertGet. Is that on purpose or just not finished yet?

@Koenkk
Copy link
Owner

Koenkk commented Dec 28, 2022

I will happily introduce a new function to lib/tuya.js for a schedule using a composite of days with a nested composite of hour, minute and temperature for each setpoint, as for the essentials thermostat. If you wish, I can make that function generic such that it can be used in the tuyaDatapoints definition.

That would be great

One thing I noted about the tuyaDatapoints definition is that the converter entry in a datapoint does not have a definition for get, so refreshing a value manually is not possible as with the former convertGet. Is that on purpose or just not finished yet?

AFAIK the TuYa api does not allow reading.

@github-actions
Copy link
Contributor

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

@github-actions github-actions bot added the stale label Jan 28, 2023
@TAKeanice
Copy link
Contributor Author

I am going to make the schedule function I used more general and outbid into the main tuya lib for others to use. This should remain open.

@github-actions github-actions bot removed the stale label Jan 29, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2023

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

@github-actions github-actions bot added the stale label Mar 1, 2023
@Koenkk Koenkk removed the stale label Mar 1, 2023
@TAKeanice
Copy link
Contributor Author

I just saw #5550 and will see how it affects the plan to introduce a better week schedule for tuya thermostats, as I am still committed to implementing it.

@github-actions
Copy link
Contributor

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

@github-actions github-actions bot added the stale label Apr 19, 2023
@github-actions github-actions bot closed this Apr 27, 2023
TAKeanice added a commit to TAKeanice/zigbee-herdsman-converters that referenced this pull request Apr 7, 2024
TAKeanice added a commit to TAKeanice/zigbee-herdsman-converters that referenced this pull request Apr 27, 2024
TAKeanice added a commit to TAKeanice/zigbee-herdsman-converters that referenced this pull request Apr 27, 2024
TAKeanice added a commit to TAKeanice/zigbee-herdsman-converters that referenced this pull request Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants