Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Koenkk/zigbee2mqtt#12952: TS110E_2gang - add power_on_behavior and switch_type parameters #4393

Conversation

gorbunovav
Copy link
Contributor

…w to exclude `power_on_behavior` converters since they can conflict with manufacturer-specific ones
…s_power_on_behavior` coverter with `tuya_switch_power_outage_memory` since we don't want to expose the `READ` capability (returns incorrect value)
… read command in the `configure` section
@gorbunovav gorbunovav marked this pull request as ready for review June 29, 2022 00:44
lib/extend.js Outdated
tz.level_config,
...(!options.disablePowerOnBehavior ? [tz.power_on_behavior] : []),
...(!options.disableEffect ? [tz.effect] : []),
];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add the disablePowerOnBehavior to other extend variants (e.g. light_onoff_brightness_color)

@gorbunovav
Copy link
Contributor Author

@Koenkk updated

@Koenkk Koenkk merged commit 73ef708 into Koenkk:master Jul 1, 2022
@Koenkk
Copy link
Owner

Koenkk commented Jul 1, 2022

Thanks!

@gorbunovav gorbunovav deleted the z2m-12952-Lonsonho-TS110E_2gang-power-memory-and-switch-type branch July 1, 2022 21:42
Mephistofeles pushed a commit to Mephistofeles/zigbee-herdsman-converters that referenced this pull request Dec 13, 2022
…ang (Koenkk#4393)

* Refs Koenkk/zigbee2mqtt#12952: `Lonsonho TS110E_2gang` - allow to configure switches type

* Refs Koenkk/zigbee2mqtt#12952: `extend.light_onoff_brightness` - allow to exclude `power_on_behavior` converters since they can conflict with manufacturer-specific ones

* Refs Koenkk/zigbee2mqtt#12952: `Lonsonho TS110E_2gang` - allow to configure `power_on_behavior`

* Refs Koenkk/zigbee2mqtt#12952: `Lonsonho TS110E_2gang` - replace `moes_power_on_behavior` coverter with `tuya_switch_power_outage_memory` since we don't want to expose the `READ` capability (returns incorrect value)

* Refs Koenkk/zigbee2mqtt#12952: `Lonsonho TS110E_2gang` - remove extra read command in the `configure` section

* Refs Koenkk/zigbee2mqtt#12952: fix linter errors

* Refs Koenkk/zigbee2mqtt#12952: revert formatting changes

* Refs Koenkk/zigbee2mqtt#12952: `lib/extend` - allow to exclude `power_on_behavior` converters for the rest of light variants

* Update lonsonho.js

* Update fromZigbee.js

* Update toZigbee.js

* Update lonsonho.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants