[SOLVED] reverse position for blinds ts130f doesn't change anything in domoticz

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
anthropo
Posts: 10
Joined: Sunday 08 March 2015 10:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

[SOLVED] reverse position for blinds ts130f doesn't change anything in domoticz

Post by anthropo »

Hello

I have devices known as ts130f to drive my blinds and
It seems that inverting position doesn't work in domoticz (Perhaps it is not 'reverse position' (i translate from french, sorry))

Via Zigbee2MQTT it works in the right way ( Expose, open et close)

So i have two blinds that go in the wrong way. Whatever 'reverse position' is active or not. I need to click on 'open' to close.

So if my blinds are opened and if i click on close nothing happens but in the logs i see :

Zigbee2mqtt.log :

Code: Select all

info 2024-02-19 19:29:27MQTT publish: topic 'zigbee2mqtt/Volet TV', payload '{"backlight_mode":"ON","calibration":"OFF","calibration_time":25.9,"indicator_mode":"off","last_seen":"2024-02-19T18:29:27.869Z","linkquality":255,"motor_reversal":"ON","moving":"STOP","position":100,"state":"OPEN"}'
info 2024-02-19 19:29:27MQTT publish: topic 'zigbee2mqtt/Volet TV', payload '{"backlight_mode":"ON","calibration":"OFF","calibration_time":25.9,"indicator_mode":"off","last_seen":"2024-02-19T18:29:27.879Z","linkquality":255,"motor_reversal":"ON","moving":"UP","position":100,"state":"OPEN"}'
info 2024-02-19 19:29:28MQTT publish: topic 'zigbee2mqtt/Volet TV', payload '{"backlight_mode":"ON","calibration":"OFF","calibration_time":25.9,"indicator_mode":"off","last_seen":"2024-02-19T18:29:28.363Z","linkquality":255,"motor_reversal":"ON","moving":"STOP","position":100,"state":"OPEN"}'
Domoticz log :

Code: Select all

2024-02-19 19:28:09.930 ZigBee2MQTT-Deconz: [Command] Device 0xa4c138457c37891b(1): Open(level = 0, color = )
2024-02-19 19:28:09.940 ZigBee2MQTT-Deconz: Command "Open" from device "Volet Télévision (Position)"
2024-02-19 19:28:09.940 ZigBee2MQTT-Deconz: MqttClient::publish zigbee2mqtt/Volet TV/set ({"state": "open"})
2024-02-19 19:28:09.907 Status: User: admin (IP: 192.168.0.120) initiated a switch command (210/Volet Télévision (Position)/Close)
2024-02-19 19:28:10.805 ZigBee2MQTT-Deconz: [Command] Device 0xa4c138457c37891b(1): Open(level = 0, color = )
2024-02-19 19:28:10.822 ZigBee2MQTT-Deconz: Command "Open" from device "Volet Télévision (Position)"
2024-02-19 19:28:10.822 ZigBee2MQTT-Deconz: MqttClient::publish zigbee2mqtt/Volet TV/set ({"state": "open"})
2024-02-19 19:28:10.798 Status: User: admin (IP: 192.168.0.120) initiated a switch command (210/Volet Télévision (Position)/Close)
2024-02-19 19:28:14.131 Status: EventSystem: reset all device statuses...
2024-02-19 19:28:18.611 ZigBee2MQTT-Deconz: [Command] Device 0xa4c138457c37891b(1): Open(level = 0, color = )
2024-02-19 19:28:18.626 ZigBee2MQTT-Deconz: Command "Open" from device "Volet Télévision (Position)"
2024-02-19 19:28:18.626 ZigBee2MQTT-Deconz: MqttClient::publish zigbee2mqtt/Volet TV/set ({"state": "open"})
2024-02-19 19:28:18.571 Status: User: admin (IP: 192.168.0.120) initiated a switch command (210/Volet Télévision (Position)/Close)
2024-02-19 19:28:19.627 ZigBee2MQTT-Deconz: [Command] Device 0xa4c138457c37891b(1): Open(level = 0, color = )
2024-02-19 19:28:19.644 ZigBee2MQTT-Deconz: Command "Open" from device "Volet Télévision (Position)"
2024-02-19 19:28:19.644 ZigBee2MQTT-Deconz: MqttClient::publish zigbee2mqtt/Volet TV/set ({"state": "open"})
2024-02-19 19:28:19.598 Status: User: admin (IP: 192.168.0.120) initiated a switch command (210/Volet Télévision (Position)/Close)
2024-02-19 19:28:20.719 ZigBee2MQTT-Deconz: [Command] Device 0xa4c138457c37891b(1): Open(level = 0, color = )
2024-02-19 19:28:20.726 ZigBee2MQTT-Deconz: Command "Open" from device "Volet Télévision (Position)"
2024-02-19 19:28:20.727 ZigBee2MQTT-Deconz: MqttClient::publish zigbee2mqtt/Volet TV/set ({"state": "open"}) 
Any idea ?

Thanks
Last edited by anthropo on Tuesday 20 February 2024 15:22, edited 1 time in total.
User avatar
waltervl
Posts: 5878
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: reverse position for blinds ts130f doesn't change anything in domoticz

Post by waltervl »

You have to switch "Reverse Open/Close State" in the Blinds setting in Domoticz. Reverse Position only reverses the slider to indicate position ( 20,30 50% etc)

https://www.domoticz.com/wiki/Blinds

If that also does not work then you normally can also invert the device in Zigbee2MQTT in device settings.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
anthropo
Posts: 10
Joined: Sunday 08 March 2015 10:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: reverse position for blinds ts130f doesn't change anything in domoticz

Post by anthropo »

In my Domoticz changing "Reverse Open/Close State" in the Blinds setting changes the position (opened or closed)

and in Zigbee2MQTT interface everything is configured correctly, when i click open in 'expose' it opens the blinds.

There is a bug : if i have the two unchecked (Reverse Open/Close State and Reverse position) the open command work but it tells the blinds are opened while it is closed. If one of them is checked the command is reversed.

I think i found the error but i'm not sure :
I had a problem with command giving a null error in Zigbee2MQTT : Error: Zigbee: Blind switch: unable to handle command "Open"
so i did what they say in viewtopic.php?p=294273&hilit=blind#p294273

But in fact in https://github.com/stas-demydiuk/domoti ... _switch.py
i have to change the code to :

Code: Select all

        if cmd == 'ON' or cmd == 'OPEN':
            return {
                state_value_key: 'close'
            }
        elif cmd == 'OFF' or cmd == 'CLOSE':
            return {
                state_value_key: 'open'
            }
I don't know if ON and OFF are used in other use cases so i left it.

Am i right ? All is working now.
User avatar
waltervl
Posts: 5878
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: reverse position for blinds ts130f doesn't change anything in domoticz

Post by waltervl »

Ah, you are using the Zigbee2MQTT plugin... Are you on the latest version?
But if it works, it works. Else you have to ask this in the Zigbee2MQTT plugin repository as an issue.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
anthropo
Posts: 10
Joined: Sunday 08 March 2015 10:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: reverse position for blinds ts130f doesn't change anything in domoticz

Post by anthropo »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest