CyberDNS / Lupusec2Mqtt

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

Request for testing: New version >v3.0.0 #46

Closed CyberDNS closed 1 year ago

CyberDNS commented 1 year ago

Hi all, @ChrisKeck, @maionaise, @scaiandre, @mentor7785, @mbay0r, @christophgasser, @Airbrando, @LuckyTriple7, @bauerpower69, @rkupfer2020, @chheiss, @s0n1c-hedgehog

I was currently working on a new model to make the integration of new devices easier. Another big change is that the MQTT library that was used has changed to MQTTnet. Can I ask you to test the new version on the edge lane?

Here are some details what has changed: With the design of the new model you can register 3 different types of "objects":

StaticValue: This is used to provide static information in the home assistant configuration json that is pushed to MQTT Query: This is used to query a state value on Lupusec and to be pushed as state to MQTT (HA) Command: This is used to declare a command that is registered on a MQTT topic and that calls something on lupusec (ex. set an the alarm mode, or switch button on power switch) The devices are now generated by a factory class per device, so that the old conversion class is gone and now every device can handle it's creation on it's own.

Also the poll loop has changed because it is now completely generic, so no special code anymore for alarm panels and switches etc. The class is located in the root folder of the project (MainLoop.cs)

Thank you very much and a "guter Rutsch" into the new year 🍾🍀 David

mbay0r commented 1 year ago

Works good for me.

Guten Rutsch wünsche ich dir auch! Danke!

mentor7785 commented 1 year ago

I will test it after Christmas. Thanks for that.

Frohe Weihnachten 🎄

mentor7785 commented 1 year ago

Maybe I'm a little bit rusty - I installed and configure the edge-version and deactivate the regular version; restart HA. After that, the "old" entities works, but there are no new entities for e.g. the shutters.

what's wrong?

CyberDNS commented 1 year ago

Maybe I'm a little bit rusty - I installed and configure the edge-version and deactivate the regular version; restart HA. After that, the "old" entities works, but there are no new entities for e.g. the shutters.

what's wrong?

For the moment it is pure refactoring, I will integrate shutters in the next days. I wanted just to ensure that all currently integrated devices are still working. (As I don't own all of them)

mentor7785 commented 1 year ago

Ahhh okay - thanks. The Christmas dinner pays its tribute ;)

maionaise commented 1 year ago

Nice, thanks! Couldn't find any problems yet, Nuki works too.

Auch von mir einen guten Rutsch!

LuckyTriple7 commented 1 year ago

3.0.5 is working without Issues:

XT2 Motion Sensors Door / Window Senesors

krim404 commented 1 year ago

dunno if still required, but it works pretty well with 45 entities, XT2+ including motion sensors, door sensors and a lot of the optional zigbee accessories on 3.0.12.

tofrie commented 1 year ago

Wie kann ich die Version installieren?

mbay0r commented 1 year ago

In HA die Edge-Version installieren. Vorher die andere entfernen.

CyberDNS commented 1 year ago

Hi all,

I have released v3.1.0 now on Edge and Stable. The version corresponds to the last published Edge version (no new changes).

Thanks a lot for your support on testing this major version.

Best regards, David