Klagio
(Klagio)
January 18, 2019, 10:17am
243
I tried but failed, maybe you can share a working config and I try it out?
Not sure this is the right thread for this, eventually I open a new one. Nevertheless that’s my log
class HueDimmer(RemoteControlBase):
"""Example config."""
remote_control_living_room:
module: remote_control
class: HueDimmer
remotes:
- dimmer_switch_5
long_press:
1:
- light.ambience_spot_1
- light.ambience_spot_2
3:
- light.ambience_spot_5
- light.ambience_spot_6
multi_click:
1:
- light.ambience_spot_1
- light.ambience_spot_2
2:
- light.ambience_spot_5
- light.ambience_spot_6
3:
- light.ambience_spot_8
- light.ambience_spot_9
POWER_ON = BUTTON_1 * 1000
DIM_UP = BUTTON_2 * 1000
DIM_DOWN = BUTTON_3 * 1000
POWER_OFF = BUTTON_4 * 1000
Robban
January 18, 2019, 12:05pm
244
The example is out of date. You should change that to HueDimmer
Klagio
(Klagio)
January 18, 2019, 12:42pm
245
Sorry, what, the module??
Robban
January 18, 2019, 2:47pm
246
Aah, no sorry. Don’t know why it reacted on that. Pushed a new version of the file that just had some things tossed around. Try it out.
Disclaimer; this is all a work in progress, more documentation is needed and to split things up in different files later on
Robban
January 18, 2019, 2:59pm
247
Make sure that the apps.yaml looks something like this
⇒ cat apps.yaml
remote_control_living_room:
module: remote_control
class: HueDimmer
remotes:
- dimmer_switch_5
hold:
1:
- light.ambience_spot_3
- light.ambience_spot_4
3:
- light.ambience_spot_7
- light.ambience_spot_6
click:
1:
- light.ambience_spot_1
- light.ambience_spot_2
2:
- light.ambience_spot_5
- light.ambience_spot_6
3:
- light.ambience_spot_8
- light.ambience_spot_9```
Klagio
(Klagio)
January 18, 2019, 9:48pm
248
Ohh so this part goes in apps.yaml and deleted from remote_control.py?
Sorry I promise to study more when have free time (and more free brain power)
Klagio
(Klagio)
January 18, 2019, 10:04pm
250
Ok that error is gone, now I need to define this too …?
File “<frozen importlib._bootstrap>”, line 219, in _call_with_frames_removed File “/config/appdaemon/apps/remote_control.py”, line 21, in <module> class RemoteControl(RemoteControlBase): NameError: name ‘RemoteControlBase’ is not defined
Robban
January 19, 2019, 5:51am
251
Did you copy the whole file?
If you have copied it but the remote control base is on the bottom of the file. Go to my github and make sure you’re viewing master and copy the updated file
Klagio
(Klagio)
January 19, 2019, 7:28am
252
I searched your name on github but there are many, can you please give me the link
Klagio
(Klagio)
January 19, 2019, 9:11am
255
Oh I didn’t get it was your github. Downloaded and installed, no more error in appdaemon console, thanks.
Will try later the functionality with the dimner. Thanks!
1 Like
Klagio
(Klagio)
January 19, 2019, 11:32am
256
Love this deconz/hass, everything is so fast and smooth.
Multitude of Low price Zigbee devices, deconz multi brand single gateway solution, hass integration , working also without Internet
Highly recommended.
It’s a Zwave killer
3 Likes
Klagio
(Klagio)
January 19, 2019, 4:58pm
258
Having a hard time trying to make the hue dimmer work. With the below configuration, what does it mean?
1 On, 2 UP, 3 Down, 4 Off buttons?
If I long press ON, what happens?
If I click two times ON what happens , scene.yellow_chandelier_lights? (its not)
remote_control_living_room:
module: remote_control
class: HueDimmer
remotes:
- dning_switch
long_press:
1:
- light.ambience_spot_1
- light.ambience_spot_2
3:
- light.ambience_spot_5
- light.ambience_spot_6
multi_click:
1:
- scene.bright_chandelier_lights
- scene.yellow_chandelier_lights
2:
- scene.concentrate_chandelier_lights
3:
- scene.dimmed_chandelier_lights
Robban
January 19, 2019, 5:28pm
259
Check my last example. It is click and hold now instead of multi click and long press
Klagio
(Klagio)
January 19, 2019, 6:43pm
260
Hurray! I removed all Zigbee devices from Xiaomi Gateway(s), I am finally free from the cloud!
QUestion about the Xiaomi gateway: can I still use it: radio, alarm, Wifi binding for XIaomi cameras (I don’t use, but), Alarm, BLE for Miflora sensor … pretty useful object, but keeping it on it will keep the Zigbee radio on, probably, and that can interfere with my current network, or when no Zigbee devices is attached the Gateway is offline for the zigbee network?
Any clue?
Robban
January 19, 2019, 7:43pm
261
The zigbe radio will probably not interfere anything if you don’t have any devices paired to it. Can’t you turn it off?
Klagio
(Klagio)
January 19, 2019, 8:37pm
262
I haven’t seen/found anything about the possibility to turn on/off the Zigbee radio
Robban
January 19, 2019, 9:36pm
263
Well there is no traffic on it when no devices are connected so it is probably negligable