Hi,
I’m using AppDaemon for quite some time and happy about it… I use some Object Oriented programming in it and it works perfectly.
Since my file is now getting quite large, I’d like to split it into multiple files, one per class. But, once I start to do:
from test import Test
where Test is a simple class, it works fine the first time. However, if I do any changes to Test, my main app does not see it. Even if I delete the file from __pycache__
, reload the main app, AppDaemon refuses to see my changes.
Any idea on how to fix that?
P.s.: I know I can split up apps in AppDaemon but I’m not a big fan of all the config files you then need. My current config file is simple and to the point, like this (some complex examples):
room_automation:
module: room_automation
class: RoomAutomation
rooms:
badkamer:
switch_to_light:
- badkamer_licht -> badkamer_licht_1
velux: badkamer_velux
window_sunshade:
cover: badkamer_zonwering
orientation: wall_1
climate:
thermostat: thermostaat_badkamer
preheat_temperature: 22
schedule:
'06:00:00': 22
'07:30:00': 16
'19:30:00': 22
'21:30:00': 16
media_player: media_player.badkamer
waskot:
switch_to_light:
- waskot_licht -> waskot_licht_1,waskot_licht_2
velux: waskot_velux
media_player: media_player.den
slaapkamer_1:
switch_to_light:
- slaapkamer_1_licht_1
- slaapkamer_1_licht_2
velux: slaapkamer_1_velux
window_sunshade:
cover: slaapkamer_1_zonwering
orientation: wall_1
antimuggen:
from: '20:15:00'
to: '06:30:00'
slaapkamer_2:
switch_to_light:
- slaapkamer_2_licht_1
- slaapkamer_2_licht_2
velux: slaapkamer_2_velux
antimuggen:
from: '21:30:00'
to: '06:31:00'
Each item below a room is an actual class which has it’s own state, …