Blinds Control via dzvents did not work

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Blinds Control via dzvents did not work

Post by mastadook »

Hi All,

first: I post here, cause I did not know if the Problem I have is a dzvents or database or something else.

Sine months I have a Blind called "Rolladen Theo" in Domoticz with a zwaver shutter controller.
This Z wave thing make different Problems not within Domoticz, but I like to go from z Wave to Shelly.
I use 3 Shelly 2.5 on diffent blinds with "ShellyMQTTPlugin" and it wok nice.
Now I have changed the Zwave device to to a new shelly plus 2pm, this was not found by ShellyMQTTPlugin
so I installed "mqtt auto discovery client with lan interface" with my Name "ShellyPlusAutodiscover" an I found the Shelly plus 2pm and get them running.
But I was really not happy with this ones so I buy some Shelly 2.5
I replaced the shelly plus 2pm with the new shelly 2.5 wich was now discoverd by the old
"ShellyMQTTPlugin" and the new "mqtt auto discovery client with lan interface" with my Name "ShellyPlusAutodiscover" Plugin.
I use all the Time the Name "Rolladen Theo"
I dont like the new Autodicover Plugin cause the old one is working fine for me.
If I now disable the new "mqtt auto discovery client with lan interface" with my Name "ShellyPlusAutodiscover" Plugin,
dzvents send me an Error in Eventlog: "Switch Command not send. Hardwaredevice disabled or not found."
But, the Device from the old "ShellyMQTTPlugin" Plugin is available and can be used via the the Switch in Domoticz.
The Name of the Switch is all the Time "Rolladen Theo" but from dzvents it can not be controlled.
Not with the Name not with ID, all the same Error Message.

Now it is your turn. Any Idea what the Problem can be or how can I fix this???

may you can help here :)
________________________________________________________________________
global chief of permanent lightning and strike detonator
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Blinds Control via dzvents did not work

Post by HvdW »

Simple solution:
Go hardware
Dummy - Create virtual sensors
Choose Switch
Once installed choose type blinds.
screen2.jpg
screen2.jpg (40.21 KiB) Viewed 601 times
screen1.jpg
screen1.jpg (57.57 KiB) Viewed 601 times
No need for dzvents (if I understand your question right)

After creating these switches automation is easy with dzVents.
Bugs bug me.
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: Blinds Control via dzvents did not work

Post by mastadook »

Thank you for trying to help, but I think we misunderstand.

If I switch on the Autodiscover Plugin I have 2 Devices "Rolladen Theo" and the manual usage works.
If I use both of the Switches with the Mouse in Domoticz it is ok, but dzvents says that we have double naming bla bla,
that is true, so then I disable the Autodiscoverplugin, and the Switch created by the Autodiscover Plugin is gone the old one (manual Plugin) is still there,
and it can be used with Mouse in Domoticz and it still works fine.
When I now try to control it via dzvents Scripts, the Script say, that the Deice is missing.
So with Autodisvover I have 2 Switches working manual but not with Script (double Naming Devices)
When I disable autodiscover i have one Switch working manual but not with Script (missing device, but with existing one)
________________________________________________________________________
global chief of permanent lightning and strike detonator
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Blinds Control via dzvents did not work

Post by waltervl »

DzVents cannot handle the same name for different devices. So the only solution is to change the name of 1 of them.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: Blinds Control via dzvents did not work

Post by mastadook »

waltervl wrote: Wednesday 25 October 2023 10:32 DzVents cannot handle the same name for different devices. So the only solution is to change the name of 1 of them.
I know this, thats why I disabled the Autoconfig Plugin and used the old one.
But it then says, that no Device with the Name is available (not with Name not with ID), but it is there an its working manual.
________________________________________________________________________
global chief of permanent lightning and strike detonator
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Blinds Control via dzvents did not work

Post by waltervl »

mastadook wrote: Wednesday 25 October 2023 12:01
waltervl wrote: Wednesday 25 October 2023 10:32 DzVents cannot handle the same name for different devices. So the only solution is to change the name of 1 of them.
I know this, thats why I disabled the Autoconfig Plugin and used the old one.
But it then says, that no Device with the Name is available (not with Name not with ID), but it is there an its working manual.
Delete the MQTT AD hardware instead of disabling it. With disabling Hardware the connected device is still there on the background so you have still 2 with the same name.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: Blinds Control via dzvents did not work

Post by mastadook »

waltervl wrote: Wednesday 25 October 2023 13:19
mastadook wrote: Wednesday 25 October 2023 12:01
waltervl wrote: Wednesday 25 October 2023 10:32 DzVents cannot handle the same name for different devices. So the only solution is to change the name of 1 of them.
I know this, thats why I disabled the Autoconfig Plugin and used the old one.
But it then says, that no Device with the Name is available (not with Name not with ID), but it is there an its working manual.
Delete the MQTT AD hardware instead of disabling it. With disabling Hardware the connected device is still there on the background so you have still 2 with the same name.
Did not help.
The Thing that helped me out for now is:
Enable the mqtt Autoconfig Plugin but remove the discovered Devices.
Now, dzvents use the Device/Shutter Switch from the old Plugin with the Autoconfig Plugin.
But that is something I don like... maybe I must completly remove the Autoconfig Plugin with Folder,
delete alle of Shutter Devices and create them new with the old Plugin?!?
________________________________________________________________________
global chief of permanent lightning and strike detonator
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Blinds Control via dzvents did not work

Post by waltervl »

A restart of Domoticz could also help Dzvents to get its internal device list up to date after a change of devices.
I have troubles understanding you in your journey with Shelly plugin/script/mqtt AD etc.

So, Dzvents cannot handle double device names. How you handle this in your setup, I don't know.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: Blinds Control via dzvents did not work

Post by mastadook »

okay, as my english is allways not the best, I try it with the Links:

-since years I use https://github.com/enesbcs/Shelly_MQTT Plugin with my shellys.
-The old ones, (Shelly1, Shelly 2.5. Shelly3EM etc.) are working fine.
-Then, I need to change from zwave to shelly 2 Shutters and I buy 2x shellyPM 2 Plus and installed them.
-And, hmm, the Devices did not appear in Domoticz.
-So I try the Plugin: https://github.com/enesbcs/shellyteacher4domo with this autoconfig mqtt Device from Domoticz.
Ok, the Devices appear and are controllable, more or less not the Way I like it to have
(that is another Story, I use:
Version: 2022.1
Build Hash: c9526851b
Compile Date: 2022-01-31 09:34:32
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Oct 31 2022, 14:04:00) [GCC 8.3.0]
and I see no need to update, cause I'm affraid of all the changes that will happen)
-Now I removed the new Shelly Plus 2 PM and replaced them with some used buyed cheap Shelly 2.5
-Getting them running in Domoticz with the old Plugin.
-Now the State is, that I can olny control them via dzvents when new Plugin is enabled either without any Shelly Devices connected from this new Plugin,
cause the 2 Shelly 2.5 Devices are are connected via the old Plugin and can be used manual via Domoticz, but the Problem occures when try to control them via dzvents.
I know, it is maybe hard to understand cause my english is bad, but maybe you now get a idea what is happening.
________________________________________________________________________
global chief of permanent lightning and strike detonator
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Blinds Control via dzvents did not work

Post by waltervl »

English is also not my native language.

Actions to do:

1. Delete (not disable!) the MQTT AD gateway hardware from menu Setup - Hardware.
Then the devices discovered with the shelly teacher4domo script will be removed from Domoticz. (also remove the script)
2. To check double device names, unset setting "Hide disabled hardware sensors" from menu Setup - Settings. See https://www.domoticz.com/wiki/Application_Settings
3. Remove/rename devices if needed. Use the search, see https://www.domoticz.com/wiki/Setup_Devices
4.. Restart Domoticz.
5. Check again for double names. If no double names found: set setting "Hide disabled hardware sensors" to true/on.

Now you should be able to use the blinds created with the plugin from dzVents.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest