Looks a lot like ControllerX. Bring full functionality to light and media player controllers
Maybe it could be a joined effort
Looks a lot like ControllerX. Bring full functionality to light and media player controllers
Maybe it could be a joined effort
@Burningstone thanks for sharing your solution and also thanks to @KennethLavrsen for his solution.
I was looking for the dimming functionality that works with holding a button for a while now. I ended up making my own appDaemon script. I have not yet tried your solution. I will let you know when I do.
Hi @hfm, you could check this out. It supports deCONZ as well for the Hue Dimmer Switch and it supports dimming and color changing.
Thanx @xaviml, I’ve looked at your solution, it seems more complex than my current solution. Sure it have more functionality than mine, but the concept of dimming seems the same (sending increment/decrement for each iteration and doing sleep in between).
@Burningstone + @KennethLavrsen solution works a little bit different.
Hello,
I was searching for some smart plugin to setup the philips hue dimmers. I saw this app deamon and it looks like everything i need is in it. But…I have no experience with appdaemon at all. I’m using home assistant for several months now but most of the things i do is in de UI. I’m still new to all de configs in the yaml files. alright.
secrets: /config/secrets.yaml
appdaemon:
latitude: *******
longitude: ******
elevation: 2
time_zone: Europe/Amsterdam
plugins:
HASS:
type: hass
http:
url: http://127.0.0.1:5050
hadashboard:
admin:
api:
And now i’m stuck. When i start the add on i get the following warning:
2020-03-25 13:24:00.267743 INFO AppDaemon: Scheduler running in realtime
2020-03-25 13:24:00.280264 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2020-03-25 13:24:00.282280 INFO AppDaemon: Adding /config/appdaemon/apps/Hue_Dimmer_Deconz to module import path
2020-03-25 13:24:00.289610 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/Hue_Dimmer_Deconz/hue_dimmer_switch_deconz.py - ignoring
2020-03-25 13:24:00.293640 INFO AppDaemon: App initialization complete
What is the next step to do to make it run? And where do i make the config for the philips hue dimmers?
Hope someone will take time to explain to me.
Kind regards,
Dennis
You need to create a yaml file in the same directory as hue_dimmer_switch_deconz.py which holds the configuration for the Dimmers.
There should be some examples on my page.
Have you thought about implementing a double click event? The trick is you have to suppress the the first btn down and up event if another down happens quickly enough. This would introduce a slight delay in reacting to a single click but give a dbl click event we could handle as well.
I tried to and got something to work more or less but it’s just an ugly workaround and I also don’t have a use for it. For the Dimmer Switch there are 8 different actions (short/long press ON,OFF,UP,DOWN) I can define, which is more than enough for one remote in my opinion.
Hello,
could someone explain me how to get this app with appdaemon running?
Here is what i did so far in the following order:
I set up HAACS
Then i realised that i need the HAACS Appdaemon support.
I removed the HAACS Integration and re added it with Appdaemon support.
I installed the Hue Dimmer Switch app with HACCS.
Then i realised that i still ne the Appdaemon addon.
I Installed Appdaemon4 from the Supervisor add on store.
I created a file in the appdaemon folder called appdaemon.yaml (i read it should be there for configuration purposes, anyhow i also read that the appdaemon4 addon is configured by it self?)
How to get this charming app to work?
Could you guys please help me in this jungle?
Thx Max
Hi Max what did you put inside the appdaemon.yaml file? Can you please post the log of the AppDaemon addon?
i didn’t add anything, i thought that file is only to configure appdaemon to work with HA, wich is not necessary according to the HA AD documentation.
Is that the part that has to go in there?
dimmer_test:
module: hue_dimmer_switch
class: HueDimmerSwitch
entities:
switch: dimmer_switch_bedroom (required)
light: light.bedroom (required)
No, this needs to be in a separate file, e.g. bedroom.yaml, and it needs to be in the “apps” folder. What does the log of the add-on show? Did you already download my app through HACS?
yes i did in step 4.
ok,
I think this was the part that was unclear to me, where configuration goes.
I’ll try it now and post my log after if it doesn’t work.
Can you please post the logs of the AppDaemon add-on? Wanna make sure that AppDaemon works.
[09:56:09] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:11] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:12] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:14] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:16] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:17] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:19] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:21] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:23] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:24] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:26] INFO: Starting AppDaemon...
Traceback (most recent call last):
File "/usr/bin/appdaemon", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 384, in main
admain.main()
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 216, in main
if "secrets" in config:
TypeError: argument of type 'NoneType' is not iterable
[09:56:28] INFO: Starting AppDaemon...
Can you please show your appdaemon.yaml file as well?
it’s empty, I probably got it wrong but it says in the installation part, that everything will be preconfigured.
https://github.com/hassio-addons/addon-appdaemon/blob/v0.2.5/README.md#installation
Installation
The installation of this add-on is pretty straightforward and not different in comparison to installing any other Home Assistant add-on.
Search for the "AppDaemon 4" add-on in the Supervisor add-on store and install it.
Start the "AppDaemon 4" add-on
Check the logs of the "AppDaemon 4" add-on to see if everything went well.
ℹ️ Please note, the add-on is pre-configured to connect with Home Assistant. There is no need to create access tokens or to set your Home Assistant URL in the AppDaemon configuration.
This automatic handling of the URL and token conflicts with the AppDaemon official documentation. The official documentation will state ha_url and token options are required. For the add-on, however, this isn't needed.
Can you please try putting the following into your appdaemon.yaml file?
appdaemon:
latitude: 52.379189
longitude: 4.899431
elevation: 2
time_zone: Europe/Amsterdam
plugins:
HASS:
type: hass
http:
url: http://127.0.0.1:5050
hadashboard:
admin:
api:
With your details for latitude, longitude etc.
I think normally it should automatically create an appdaemon.yaml file during install, but I’m not sure as I’m not using the add-on myself.
i added the config, here is the new log
[10:13:35] INFO: Starting AppDaemon...
2020-04-26 10:13:37.163165 INFO AppDaemon: AppDaemon Version 4.0.3 starting
2020-04-26 10:13:37.163725 INFO AppDaemon: Python version is 3.8.2
2020-04-26 10:13:37.164196 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2020-04-26 10:13:37.164602 INFO AppDaemon: Added log: AppDaemon
2020-04-26 10:13:37.165030 INFO AppDaemon: Added log: Error
2020-04-26 10:13:37.165440 INFO AppDaemon: Added log: Access
2020-04-26 10:13:37.165814 INFO AppDaemon: Added log: Diag
2020-04-26 10:13:37.211821 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2020-04-26 10:13:37.254531 INFO HASS: HASS Plugin Initializing
2020-04-26 10:13:37.255103 INFO HASS: HASS Plugin initialization complete
2020-04-26 10:13:37.256116 INFO AppDaemon: Initializing HTTP
2020-04-26 10:13:37.256948 INFO AppDaemon: Using 'ws' for event stream
2020-04-26 10:13:37.292301 INFO AppDaemon: Starting API
2020-04-26 10:13:37.306920 INFO AppDaemon: Starting Admin Interface
2020-04-26 10:13:37.308365 INFO AppDaemon: Starting Dashboards
2020-04-26 10:13:37.346482 INFO HASS: Connected to Home Assistant 0.108.9
2020-04-26 10:13:37.413064 INFO AppDaemon: App 'dimmer_all_lifx' added
2020-04-26 10:13:37.414780 INFO AppDaemon: Found 1 total apps
2020-04-26 10:13:37.415677 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2020-04-26 10:13:37.418837 INFO AppDaemon: Running on port 5050
2020-04-26 10:13:37.484846 INFO HASS: Evaluating startup conditions
2020-04-26 10:13:37.530409 INFO AppDaemon: Got initial state from namespace default
Here are two screen shots, one of the appdaemon.yaml and one off my config for the dimmer switch.
Unfortunately it’s still now working.