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

Enhancements and addition of various devices #2668

Merged
merged 22 commits into from
May 4, 2020

Conversation

SwoopX
Copy link
Collaborator

@SwoopX SwoopX commented Apr 8, 2020

<cluster id="0xfc82" name="Immax" mfcode="0x1037">
<description>Immax specific attributes.</description>
<server>
<attribute id="0x0010" name="Turned on since" type="u32" mfcode="0x1037" access="r" required="m"> </attribute>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Want one!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) Not to bad that you can see how log it has been turned on.

Hace silently hoped for something that can turn it off as well automatically.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s standard On/Off cluster functionality. Try a PUT to the state with a body of {"on": true, "ontime": 60}. Not sure if that’s in seconds or 0.1 seconds, though. This sends the On with Timed Off command (also used by the Trådfri motion sensors).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, tend to always overlook that, but I meant based on current power usage. Off after 5 mins < 5W.

if ((modelId != QLatin1String("SP 120")) &&
(modelId != QLatin1String("ZB-ONOFFPlug-D0005")) &&
(modelId != QLatin1String("TS0121")) &&
(modelId != QLatin1String("Plug-230V-ZB3.0")))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to make these changes to database.cpp as well.

if ((sensor.modelId() != QLatin1String("SP 120")) &&

Copy link
Collaborator Author

@SwoopX SwoopX Apr 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are, forgot it here ;)

@SwoopX SwoopX changed the title Add various devices Enhancements and add various devices Apr 19, 2020
SwoopX added 2 commits April 22, 2020 21:07
WIP, as the device does not to have a (visible) IAS zone cluster
Apparently, there's at least 2 different hardware versions
@SwoopX SwoopX changed the title Enhancements and add various devices Enhancements and addition of various devices Apr 24, 2020
@manup manup merged commit b13ae67 into dresden-elektronik:master May 4, 2020
@muchasuerte
Copy link
Contributor

muchasuerte commented Oct 10, 2020

Hello from Deconz UI I see 2 options ontime and offWaitTime, but how they are mapped on HA or REST API?

I'm aware that I can use ontime with this command : curl -H 'Content-Type: application/json' -X PUT -d '{"on": true, "ontime": 600}'
about offWaitTime, how I can use it?

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

Successfully merging this pull request may close these issues.

4 participants