dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 502 forks source link

Sunricher ZG9092 thermostat #5409

Closed Maxcrouz73 closed 2 years ago

Maxcrouz73 commented 3 years ago

Hello all, i want to request adding this sunricher thermostat .

Device

Capture d’écran (85)

Capture d’écran (86)

Capture d’écran (87)

Capture d’écran (88)

Manufacturer Name and Model Identifier are not display here don't know why but i can read this the basic cluster info

Basic

Basic

Identify

identify

Alarms

Alarm

Groups

Group1

Group2

Scenes

Scene1

Scene2

Simple Metering

Simple metering

Electrical measurement

Mesure t

OTA

OTA

Screenshots

Mimiix commented 3 years ago

Missing forum post

Maxcrouz73 commented 3 years ago

Hello,

Missing forum post?

Sorry newby here what i should do?

Mimiix commented 3 years ago

Please read the template

Maxcrouz73 commented 3 years ago

Sorry, it's because i remove the header? i'm a bit confuse...

Mimiix commented 3 years ago

Please read carefully.

Maxcrouz73 commented 3 years ago

OK Guess i get it... Sorry for this

Mimiix commented 3 years ago

No worries :)

Maxcrouz73 commented 2 years ago

Hello there,

A little up for my request 😁

github-actions[bot] commented 2 years ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] commented 2 years ago

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

Mimiix commented 2 years ago

You need to keep it open and bump it up :)

Maxcrouz73 commented 2 years ago

sunricher8 sunricher7 sunricher6 sunricher5 sunricher4 sunricher3 sunricher2

Maxcrouz73 commented 2 years ago

Hello @Mimiix thanks for your help, do i need to add more thinks or reopen the request from scratch ?

Mimiix commented 2 years ago

I re-opened

janneHalttu commented 2 years ago

Im in need of this too

Mimiix commented 2 years ago

Unless this can be done with DDF (@Smanar ?) it's gonna take a while #5733

janneHalttu commented 2 years ago

I hope so. I also Contacted Dresden Electronics for this, because we are Conbee resellers

Mimiix commented 2 years ago

I would be amazed if that would help. Let me know the outcome :)

Maxcrouz73 commented 2 years ago

Hi there,

Hope this could be integrated proprely soon… I have no solutions for climat control in zigbee and this device is really great!

Envoyé de mon iPhone

Le 4 févr. 2022 à 12:38, Dennis D @.***> a écrit :

 I would be amazed if that would help. Let me know the outcome :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

Smanar commented 2 years ago

Unless this can be done with DDF (@Smanar ?) it's gonna take a while #5733

Can make a try, will be the first DDF for thermostat, but this device is standard and use standard cluster so why not.

Some one here want to make a try with DDF ? Short description : https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet A video : https://www.youtube.com/watch?v=rgTQpOVg8w0

You just need a OS with desktop or VNC stuff.

janneHalttu commented 2 years ago

I opened that and thumb went to mouth...

janneHalttu commented 2 years ago

image Its in GOld mode, but does not show in Phoscon

janneHalttu commented 2 years ago

I dont understand this... I edited product DDF, saved FIle, hotloaded, averything... But When I return to main view and open DDF editor again... It empty again.. It does not save changes to device image

janneHalttu commented 2 years ago

image

janneHalttu commented 2 years ago

My Bindings are also empty, should there be something? EDIT: I went back to Phoscon and now it appeared there! BUT state, etc all are wrong... how to edit this correct? image

janneHalttu commented 2 years ago

HOW? Its empty when edited, but SOmehow I need to add that data on right to here image

Smanar commented 2 years ago

Lol, not so fast ^^.

The device will be reconized, but value will be updated in the API only when you read the value using deconz (for exemple when reading all attributes in the cluster 0x0201) If Yes, it s normal, next step the binding/reporting.

BTW, why you have a "electrical mesurement cluster" and "simple metring", the device mesure something special ?

I dont understand this... I edited product DDF, saved FIle, hotloaded, averything... But When I return to main view and open DDF editor again... It empty again

No right issues ?

janneHalttu commented 2 years ago

Lol, not so fast ^^.

Enable DDF , DONE DONE. Create one for this node, DONE DONE Set basic information, DONE What is this? Just name? Set "gold" status. DONE Create a ZHAthermostat, DONE As you have many cluster, use "01" as endpoint where you will see "Auto", for exemple when you select config/endpoint. You lost me here... I can see 01, What is endpoint? I cannot see "auto" Save the DDF (now when you will make "edit DDF", you will see this path in the window title) That is done On the menu make "Hot Reload" The device will be reconized, but value will be updated in the API only when you read the value using deconz (for exemple when reading all attributes in the cluster 0x0201) Yes recognized, but no values are showing yet. If Yes, it s normal, next step the binding/reporting. How?

BTW, why you have a "electrical mesurement cluster" and "simple metring", the device mesure something special ? Its electric usage.

image

janneHalttu commented 2 years ago

Wanna Teamviewer and do it? =) Maybe I understand next one If i can see what is really done..

janneHalttu commented 2 years ago

II found Bindings dropbox. I can drop BASIC to Destination box and BIND. But when I go back to DDF tab, it does not show anything there. image image

janneHalttu commented 2 years ago

According to guide I should be able to drop items from 01 Insode DFF editor?? Not possible Windows is not supported, image

Smanar commented 2 years ago

Set basic information, DONE What is this? Just name?

It's fine was, the modelid, manufacture name.

As you have many cluster, use "01" as endpoint where you will see "Auto", for exemple when you select config/endpoint. You lost me here... I can see 01, What is endpoint? I cannot see "auto"

https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet The endpoint is the number on the top/right

The code is normally able to detect it, but in reality ... So better to fix it, avoid this kind of ep And use instead 0x01 or 01.

The device will be reconized, but value will be updated in the API only when you read the value using deconz (for exemple when reading all attributes in the cluster 0x0201) Yes recognized, but no values are showing yet. If Yes, it s normal, next step the binding/reporting. How?

It mean not ^^. There is something bad, you need first the DDF is able to change values, after setting the bind/report. Try selecting for exemple config/heatpooint and make a capture pls ?

BTW, why you have a "electrical mesurement cluster" and "simple metring", the device mesure something special ? Its electric usage.

But it's a thermostat ? It's the electric usage of the thermostat itself ?

Will see later, for you will need to drag and drop the cluster 0x0201 to the left panel them the attribute 0x0000 local temperature, 0x0012 the setpoint, and the mode, don't remember the issue.

Can you show the DDF (you have it a third tab) ?

janneHalttu commented 2 years ago

Heatsetpoint: image

But it's a thermostat ? It's the electric usage of the thermostat itself ? Yes.

Will see later, for you will need to drag and drop the cluster 0x0201 to the left panel them the attribute 0x0000 local temperature, 0x0012 the setpoint, and the mode, don't remember the issue.

DONE: image What is attribute 0x000 and 0x0012 Cannet see them?

Can you show the DDF (you have it a third tab) ?: image

Smanar commented 2 years ago

You have not set the thermostat part. Not your fault, pre-filled values are not set in the json.

So you will need to do that for heatsetpoint, mode and temperature.

Value to use:

state/temperature Cluster 0x0201 Attribute 0x0000 endpoint 01

config/heatsetpoint Cluster 0x0201 Attribute 0x0012 endpoint 01

config mode Cluster 0x0201 Attribute 0x001C endpoint 01

But it's a thermostat ? It's the electric usage of the thermostat itself ? Yes.

So what is the use of that ? The thermostat consumption is useless compared to heating part consumption ?

What is attribute 0x000 and 0x0012 Cannet see them?

Just select the cluster 0x0201, the bluenumber, and on the cluster tabd you will have a table on bottom, it s the attribute table. It's exactly what you have done for the Electrical measurement cluster on your capture, but you have missed the only one usefull cluster ^^ , the thermostat one. After thoses changes, if you press the "read" button on the thermostat cluster panel, I will update the value in the API.

janneHalttu commented 2 years ago

Got this far: image

and here: image

But its missing lots of items. It is Floorheater. SO it hase timetable I can edit, automatic heating when set temperature is too low. Manual control ON/OFF.. and yes, because it can handle 3600W floorheatercable, it has electric consumption meter..

ABove is PDF manual that has ALL this and datapoints. Im going here blindly with your guide and so far it has worked! Now rest !

janneHalttu commented 2 years ago

Im giving all info here: image image image image image image image image

janneHalttu commented 2 years ago

To make this Zigbee Thermostat, it should have at least:

What else is usually? Zigbee access to heater schedule?

Smanar commented 2 years ago

The thermostat cluster is not the 0x0204 but the 0x0201 Current Temperature is working I can see it in the capture on phoscon Set Temperature and Heating ON/OFF, need to work too with the last changes.

Try to read values on the cluster 0x0201 to be sure there are updated in the api, then you can read them in phoscon / help / api information / sensor / (13 ??? )

If you still have nothing can you show the DDF ?

janneHalttu commented 2 years ago

The thermostat cluster is not the 0x0204 but the 0x0201 I cannot find 0x0204 anywhere ??

Current Temperature is working I can see it in the capture on phoscon Yes, that is good.

Set Temperature and Heating ON/OFF, need to work too with the last changes.

Try to read values on the cluster 0x0201 to be sure there are updated in the api, then you can read them in phoscon / help / api information / sensor / (13 ??? ) I have read values, and added to Lovelace. But Heater or OFF buttons does not work.

If you still have nothing can you show the DDF ? I have no Idea how to get that file from inside my Qnap VM that is running this. It wont allow me to even copy/paste this text... I mean I can select it, but If i open Notepad in my windows, nothing Paste image

janneHalttu commented 2 years ago

I can see that file is there, but my Qnap fileexplorer cannot find that directory image

janneHalttu commented 2 years ago

This looks good, but nothing goes to thermostat from these buttons: image

Smanar commented 2 years ago

I cannot find 0x0204 anywhere ??

You have find it here ^^ image

I have read values, and added to Lovelace. But Heater or OFF buttons does not work.

Can you show the device json ? To check if the issue is from the API or HA, you can find it in phoscon / help / API information / sensors

I have no Idea how to get that file from inside my Qnap VM that is running this.

Yeah I know it s boring on dockers, and I can't help you for that. But can use picture, I just need the not working part, like config/heatsetpoint, at 2 place, 1 that look like

          "name": "attr/swversion",
          "awake": true,
          "refresh.interval": 84000,
          "read": {
            "at": "0x8000",
            "cl": "0x0000",
            "ep": 38,
            "fn": "zcl"

And the bind part that look like

      "bind": "unicast",
      "src.ep": 38,
      "cl": "0x0402",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x29",
          "min": 60,
          "max": 600,
          "change": "0x0000000A"
        }
      ]
janneHalttu commented 2 years ago

Then thermostat IS correct: image image image

There is no Bind part ...

Smanar commented 2 years ago

There is no Bind part ...

Ha yes, my bad, I prefer make them in last, when all is working, it mean you are forced to read value in the GUI to update value in the API.

But it work for temperature, so we are not far way the solution. Try to force the expression to "Item.val = Attr.val", it s the only field you have in bonus for the temperature.

janneHalttu commented 2 years ago

From API { "config": { "heatsetpoint": 2950, "mode": null, "offset": 0, "on": false, "reachable": true }, "etag": "92e68dec362fdc2225788acdbeb704a2", "lastannounced": "2022-02-08T14:54:17Z", "lastseen": "2022-02-08T14:54Z", "manufacturername": "Sunricher", "modelid": "ZG9092", "name": "Thermostat 13", "state": { "lastupdated": "2022-02-08T18:38:07.315", "on": null, "temperature": 2448, "valve": null }, "swversion": "6.9.1.0_r4", "type": "ZHAThermostat", "uniqueid": "1f:ff:00:00:00:00:00:17-01-0201" }

janneHalttu commented 2 years ago

Try to force the expression to "Item.val = Attr.val", it s the only field you have in bonus for the temperature. ??

I do what here?: image

janneHalttu commented 2 years ago

SO I edit this: image

Smanar commented 2 years ago
"heatsetpoint": 2950,
"mode": null,

Set it seem you can set the temperature too. Only the mode seem missing.

Ok, will se later for the mode, can be from the device, can check if the attribute is working in the attribute table for the cluster 0x0201

But now the bind

Use as value for 0x0012

            min = 1;
            max = 600;
            change= 50;

And for 0x0000

            min = 1;
            max = 600;
            chnage = 20;

And no for temperature the expression is good, it s working, so not realy usefull but you can set them for heatsetpoint (even this one seem working too).

BTW on HA you will probably have this issue https://forum.phoscon.de/t/ddf-editor-how-to-drag-bindings/1351

janneHalttu commented 2 years ago

You mean Drag from RIGHT to left? image

This view has nothing to drag... image

Mimiix commented 2 years ago

https://forum.phoscon.de/t/ddf-editor-how-to-drag-bindings/1351?u=Mimiix here's someone who had the same issue.