stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 99 forks source link

IKEA PRAKTLYSING cellular blind open/close #807

Closed rolfie23 closed 2 years ago

rolfie23 commented 2 years ago

Issue description Today installed the Praktlysing cellular blinds, this morning updated everything (zigbee2mqtt, plugin and reverted plugin back to 3.0 because a lot of problems and no time. But now the buttons for open and close doesn't work. Slider from 1 till 100% works and on 0% it also doesn't work. Tried all the different blind types on domoticz but unafortannaly I think its sending a wrong command.

Additional information Zigbee2MQTT version: [1.25.2] commit: [e8528512] Python version: Python 2.7.16 Python 3.7.3 Domoticz version: 2022.1 Plugin version: [v.3.0.0]

Log After pressing open, I get the following errors in Domoticz: 2022-06-03 16:40:03.860 Status: User: Domoticz (IP: 83.81.72.254) initiated a switch command (605/Plisse tuindeur links/Off) 2022-06-03 16:40:03.909 Error: Zigbee2MQTT: 'onCommand' failed 'KeyError':'('value_off',)'. 2022-06-03 16:40:03.909 Error: Zigbee2MQTT: Exception traceback: 2022-06-03 16:40:03.909 Error: Zigbee2MQTT: ----> Line 291 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onCommand 2022-06-03 16:40:03.909 Error: Zigbee2MQTT: ----> Line 104 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onCommand 2022-06-03 16:40:03.909 Error: Zigbee2MQTT: ----> Line 75 in '/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py', function handle_command 2022-06-03 16:40:03.909 Error: Zigbee2MQTT: ----> Line 423 in '/home/pi/domoticz/plugins/zigbee2mqtt/adapter.py', function handle_command 2022-06-03 16:40:03.909 Error: Zigbee2MQTT: ----> Line 37 in '/home/pi/domoticz/plugins/zigbee2mqtt/devices/switch/blind_percentages_switch.py', function generate_command

After pressing close, I get the following errors in Domotcz: 2022-06-03 16:40:32.861 Status: User: Domoticz (IP: 83.81.72.254) initiated a switch command (608/Plisse tuindeur rechts/On) 2022-06-03 16:40:32.901 Error: Zigbee2MQTT: 'onCommand' failed 'KeyError':'('value_on',)'. 2022-06-03 16:40:32.901 Error: Zigbee2MQTT: Exception traceback: 2022-06-03 16:40:32.901 Error: Zigbee2MQTT: ----> Line 291 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onCommand 2022-06-03 16:40:32.901 Error: Zigbee2MQTT: ----> Line 104 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onCommand 2022-06-03 16:40:32.901 Error: Zigbee2MQTT: ----> Line 75 in '/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py', function handle_command 2022-06-03 16:40:32.901 Error: Zigbee2MQTT: ----> Line 423 in '/home/pi/domoticz/plugins/zigbee2mqtt/adapter.py', function handle_command 2022-06-03 16:40:32.901 Error: Zigbee2MQTT: ----> Line 33 in '/home/pi/domoticz/plugins/zigbee2mqtt/devices/switch/blind_percentages_switch.py', function generate_command

rolfie23 commented 2 years ago

For now, changed in home\pi\domoticz\plugins\zigbee2mqtt\devices\switch\blind_percentages_switch.py

          if cmd == 'ON':
             return {
 #                state_value_key: self.state_feature['value_on']
                 state_value_key: 'close'
             }
         elif cmd == 'OFF':
             return {
 #                state_value_key: self.state_feature['value_off']
                 state_value_key: 'open'
             }

See uncomment part and line below that. Don't know if this is a good solution,

stas-demydiuk commented 2 years ago

As I see it is already fixed in the master, so closing the issue