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

[miio] Brightness Channel as Dimmer #4388

Closed
DerBurri opened this issue Dec 16, 2018 · 2 comments · Fixed by #7404
Closed

[miio] Brightness Channel as Dimmer #4388

DerBurri opened this issue Dec 16, 2018 · 2 comments · Fixed by #7404
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@DerBurri
Copy link

Expected Behavior

I am trying to use the Dimmer Item with the Brightness Channel. Maybe it will be nice to switch the Channel Type of the Brightness channel to Dimmer instead of Type Number. So if a value is applied to the Dimmer Item the Brightness should adjust.

Current Behavior

I am using the Xiaomi Zhirui LED Bulb in OpenHab
If connect the Brightness Channel to a Dimmer Item the Brightness can not be adjusted. The value stays always at 100 % and is not accepting new values. Because of this the Hue Emulation also don't work. Linking the Channel to a Number item enables me to change the brightness, but then the Hue Emulation is unusable.

Possible Solution

Change Channel Type for Brightness from Number to Dimmer

Context

I try to control the Xiaomi LED Bulbs with Amazon Alexa, so i tried the Hue Emulation. I am able to turn the Lamps on/off, but i am not able to control the brightness. I tried many combinations.

Your Environment

  • Version used: (e.g., openhab and addon versions) openhab 2.4.0 Squeezebox .things file errors #1455
  • Environment name and version (e.g. Chrome 39, node.js 5.4, Java 8, ...): Oracle Java 1.8.0_181
  • Operating System and version (desktop or mobile, Windows 10, Raspbian Jessie, ...): Raspberry Pi 3 Debian Jessie

With best regards Maximilian Burr

@wborn wborn changed the title [MIIO] XIAOMI MI IO Brightness Channel as Dimmer [miio] Brightness Channel as Dimmer Dec 19, 2018
@marcelrv marcelrv self-assigned this Feb 5, 2019
@davidgraeff davidgraeff added the enhancement An enhancement or new feature for an existing add-on label Mar 18, 2019
@marcelrv
Copy link
Contributor

what is the model Id for your item.
The Philips ones have been recently fixed

@marcelrv
Copy link
Contributor

If it is different, pls try the following:
Download the database file for your device from here
https://github.com/openhab/openhab-addons/tree/2.5.x/bundles/org.openhab.binding.miio/src/main/resources/database
put that in your openhab/conf/misc/miio folder (the miio folder you probably need to create)
Change the line "type": "Number", to "type": "Dimmer", in the brightness channel section.

That should fix it. Please feedback the result so we can incorporate it in the main binding.

marcelrv added a commit to marcelrv/openhab-addons that referenced this issue Apr 17, 2020
* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions


Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
@marcelrv marcelrv linked a pull request Apr 17, 2020 that will close this issue
cpmeister pushed a commit that referenced this issue Apr 18, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling #7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers #4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
yfre pushed a commit to yfre/openhab-addons that referenced this issue Apr 27, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Eugen Freiter <freiter@gmx.de>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this issue May 29, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
LoungeFlyZ pushed a commit to LoungeFlyZ/openhab2-addons that referenced this issue Jun 8, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
J-N-K pushed a commit to J-N-K/openhab-addons that referenced this issue Jul 14, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this issue Jul 26, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: CSchlipp <christian@schlipp.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this issue Sep 1, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Daan Meijer <daan@studioseptember.nl>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this issue Sep 19, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants