CyberDNS / Lupusec2Mqtt

Lupusec Alarm System to Mqtt
MIT License
11 stars 5 forks source link

Integrate Shutters #34

Closed mentor7785 closed 1 year ago

mentor7785 commented 2 years ago

Hello everyone, after setup the repo, I miss the shutters in the entity-list. Is it possible to integrate and control the shutters as well?

Unfortunately, I have no knowledge of C# - I would need your help here.

Thx and kind regards mentor7785

CyberDNS commented 1 year ago

😱 Getting crazy 😆 It is quite difficult to debug if you don't have access to the hardware.

Anyway, I pushed a new version 3.0.8

mbay0r commented 1 year ago

Soll ich eins ausbauen und dir schicken? :-D

mbay0r commented 1 year ago
{"area": 1, "zone": 6, "type": 76, "type_f": "{D_TYPE_76}", "name": "Rollladen Wohnzimmer ", "id": "ZS:5e4b01", "level": 100, "consumer_id": 0, "ammeter": 0, "always_off": 0, "shutter_turn": 0, "hue": "-1", "sat": "-1", "ctemp": "-1", "hue_cmode": "-1", "hue_cie_x": "-1", "hue_cie_y": "-1", "hue_color_cap": "0", "nuki": "-1", 
"status": ""},

[15:34:31 VRB] Querying values for ZS:5e4b01 - Rollladen Wohnzimmer on topic homeassistant/cover/lupusec/ZS_5e4b01/state => closed
[15:34:31 VRB] Querying values for ZS:5e4b01 - Rollladen Wohnzimmer on topic homeassistant/cover/lupusec/ZS_5e4b01/position => null
CyberDNS commented 1 year ago

Now I see one detail and it could be related to this:

I am calling /action/deviceListGet and you mentioned above that you get the value from /action/deviceGet, then I think it is quite obvious why it does not work.

I will check.

CyberDNS commented 1 year ago

New version available 3.0.9

mbay0r commented 1 year ago

15:56:51 ERR] Error during poll execution! System.ArgumentNullException: Value cannot be null. (Parameter 'input') at System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg) at System.Text.RegularExpressions.Regex.Match(String input) at Lupusec2Mqtt.Mqtt.Homeassistant.Devices.HumiditySensor.GetState(ILogger logger, ILupusecService lupusecService) in /src/Lupusec2Mqtt/src/Lupusec2Mqtt/Mqtt/Homeassistant/Devices/HumiditySensor.cs:line 35 at Lupusec2Mqtt.MainLoop.DoWork(Object state) in /src/Lupusec2Mqtt/src/Lupusec2Mqtt/MainLoop.cs:line 96

CyberDNS commented 1 year ago

3.0.10 available

I don't have HumiditySensors, too 😆

mbay0r commented 1 year ago

Humidity works good, i think.

Shutters work now I think, awesome, thank you very much !

CyberDNS commented 1 year ago

You are welcome. 🙂

Glad to hear that it is working now, you can do some additional testing and then close the issue if everything is fine.

mentor7785 commented 1 year ago

I will test it too :) Thanks for all your work. If the issue is fixed, would we start to integrate another device. I can offer a light sensor/brightness sensor ;)

mbay0r commented 1 year ago

I will test it in detail later, but a first test was very good.

Thermostat next?! 😂

CyberDNS commented 1 year ago

@mentor7785 : Yes simply create a new issue for the brightness sensor. You can already try to figure out how to read the value. Normally you find the sensor in /action/deviceGet.

@mbay0r : Ican implement the thermostat next. You can already figure out how to get the states and wjat are the different commands.

mbay0r commented 1 year ago

@mentor7785 Did you test it? If yes, please Close the Issue as resolved.