simo 2.0.40__py3-none-any.whl → 2.0.42__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of simo might be problematic. Click here for more details.
- simo/core/__pycache__/api.cpython-38.pyc +0 -0
- simo/core/api.py +3 -3
- simo/generic/__pycache__/controllers.cpython-38.pyc +0 -0
- simo/generic/__pycache__/forms.cpython-38.pyc +0 -0
- simo/generic/controllers.py +3 -3
- simo/generic/forms.py +4 -3
- {simo-2.0.40.dist-info → simo-2.0.42.dist-info}/METADATA +1 -1
- {simo-2.0.40.dist-info → simo-2.0.42.dist-info}/RECORD +11 -11
- {simo-2.0.40.dist-info → simo-2.0.42.dist-info}/LICENSE.md +0 -0
- {simo-2.0.40.dist-info → simo-2.0.42.dist-info}/WHEEL +0 -0
- {simo-2.0.40.dist-info → simo-2.0.42.dist-info}/top_level.txt +0 -0
|
Binary file
|
simo/core/api.py
CHANGED
|
@@ -150,9 +150,9 @@ def get_components_queryset(instance, user):
|
|
|
150
150
|
c_ids = set()
|
|
151
151
|
|
|
152
152
|
from simo.generic.controllers import WeatherForecast
|
|
153
|
-
|
|
153
|
+
|
|
154
154
|
if instance.indoor_climate_sensor:
|
|
155
|
-
|
|
155
|
+
c_ids.add(instance.indoor_climate_sensor.id)
|
|
156
156
|
wf_c = Component.objects.filter(
|
|
157
157
|
zone__instance=instance,
|
|
158
158
|
controller_uid=WeatherForecast.uid, config__is_main=True
|
|
@@ -170,7 +170,7 @@ def get_components_queryset(instance, user):
|
|
|
170
170
|
|
|
171
171
|
for cp in user_role.component_permissions.all():
|
|
172
172
|
if cp.read:
|
|
173
|
-
c_ids.add(cp.id)
|
|
173
|
+
c_ids.add(cp.component.id)
|
|
174
174
|
|
|
175
175
|
return qs.filter(id__in=c_ids)
|
|
176
176
|
|
|
Binary file
|
|
Binary file
|
simo/generic/controllers.py
CHANGED
|
@@ -108,7 +108,7 @@ class PresenceLighting(Script):
|
|
|
108
108
|
# script specific variables
|
|
109
109
|
sensors = {}
|
|
110
110
|
light_org_values = {}
|
|
111
|
-
is_on =
|
|
111
|
+
is_on = False
|
|
112
112
|
turn_off_task = None
|
|
113
113
|
|
|
114
114
|
def _run(self):
|
|
@@ -130,7 +130,7 @@ class PresenceLighting(Script):
|
|
|
130
130
|
self.sensors[sensor.id] = sensor
|
|
131
131
|
|
|
132
132
|
presence_values = [s.value for id, s in self.sensors.items()]
|
|
133
|
-
if self.component.config.get('act_on', 0):
|
|
133
|
+
if self.component.config.get('act_on', 0) == 0:
|
|
134
134
|
must_on = any(presence_values)
|
|
135
135
|
else:
|
|
136
136
|
must_on = all(presence_values)
|
|
@@ -173,7 +173,7 @@ class PresenceLighting(Script):
|
|
|
173
173
|
comp.controller.send(self.component.config['on_value'])
|
|
174
174
|
return
|
|
175
175
|
|
|
176
|
-
if self.is_on
|
|
176
|
+
if self.is_on:
|
|
177
177
|
if not additional_conditions_met:
|
|
178
178
|
return self._turn_it_off()
|
|
179
179
|
if not any(presence_values):
|
simo/generic/forms.py
CHANGED
|
@@ -204,6 +204,10 @@ class PresenceLightingConfigForm(BaseComponentForm):
|
|
|
204
204
|
|
|
205
205
|
def __init__(self, *args, **kwargs):
|
|
206
206
|
super().__init__(*args, **kwargs)
|
|
207
|
+
self.basic_fields.extend(
|
|
208
|
+
['lights', 'on_value', 'off_value', 'presence_sensors',
|
|
209
|
+
'act_on', 'hold_time', 'conditions', 'autostart', 'keep_alive']
|
|
210
|
+
)
|
|
207
211
|
if self.instance.pk:
|
|
208
212
|
prefix = get_script_prefix()
|
|
209
213
|
if prefix == '/':
|
|
@@ -216,9 +220,6 @@ class PresenceLightingConfigForm(BaseComponentForm):
|
|
|
216
220
|
)
|
|
217
221
|
|
|
218
222
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
223
|
class ThermostatConfigForm(BaseComponentForm):
|
|
223
224
|
temperature_sensor = forms.ModelChoiceField(
|
|
224
225
|
Component.objects.filter(
|
|
@@ -26,7 +26,7 @@ simo/_hub_template/hub/supervisor.conf,sha256=IY3fdK0fDD2eAothB0n54xhjQj8LYoXIR9
|
|
|
26
26
|
simo/_hub_template/hub/urls.py,sha256=Ydm-1BkYAzWeEF-MKSDIFf-7aE4qNLPm48-SA51XgJQ,25
|
|
27
27
|
simo/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
simo/core/admin.py,sha256=xVMFl1MvQ-THwrnAVSvIkhbfbIIc4r_dDGEkpkRoSBk,17751
|
|
29
|
-
simo/core/api.py,sha256=
|
|
29
|
+
simo/core/api.py,sha256=X5mIaWcTDpUAghYX_6EdajWarlxa_aNvIE9MBmD-j3w,25030
|
|
30
30
|
simo/core/api_auth.py,sha256=_3hG4e1eLKrcRnSAOB_xTL6cwtOJ2_7JS7GZU_iqTgA,1251
|
|
31
31
|
simo/core/api_meta.py,sha256=ySmmhtVrWatI3yqnYPuP5ipapmJfyfEbl32w-7_W5O4,3551
|
|
32
32
|
simo/core/app_widgets.py,sha256=EEQOto3fGR0syDqpJE38tQrx8DoTTyg26nF5kYzHY38,2018
|
|
@@ -57,7 +57,7 @@ simo/core/views.py,sha256=hlAKpAbCbqI3a-uL5tDp532T2oLFiF0MBzKUJ_SNzo0,5833
|
|
|
57
57
|
simo/core/widgets.py,sha256=J9e06C6I22F6xKic3VMgG7WeX07glAcl-4bF2Mg180A,2827
|
|
58
58
|
simo/core/__pycache__/__init__.cpython-38.pyc,sha256=y0IW37wBUIGa3Eh_ZG28pRqHKoLiPyTgUX2OnbkEPlc,158
|
|
59
59
|
simo/core/__pycache__/admin.cpython-38.pyc,sha256=1OisxqtyWMbzpgeeu5vtBW3gp3Nts4Ei4ff1P-SPpq4,13545
|
|
60
|
-
simo/core/__pycache__/api.cpython-38.pyc,sha256=
|
|
60
|
+
simo/core/__pycache__/api.cpython-38.pyc,sha256=Gk9AD-MQnCRfkYzeULfZ7KiWvMxbdXhftKdcqaXhJSA,19876
|
|
61
61
|
simo/core/__pycache__/api_auth.cpython-38.pyc,sha256=5UTBr3rDMERAfc0OuOVDwGeQkt6Q7GLBtZJAMBse1sg,1712
|
|
62
62
|
simo/core/__pycache__/api_meta.cpython-38.pyc,sha256=94T3_rybn2T1_bkaDQnQRyjy21LBaGOnz-mmkJ6T0N8,2840
|
|
63
63
|
simo/core/__pycache__/app_widgets.cpython-38.pyc,sha256=9Es2wZNduzUJv-jZ_HX0-L3vqwpXWBbseEwoC5K6b-w,3465
|
|
@@ -10287,8 +10287,8 @@ simo/fleet/migrations/__pycache__/__init__.cpython-38.pyc,sha256=5k1KW0jeSDzw6Rn
|
|
|
10287
10287
|
simo/generic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10288
10288
|
simo/generic/app_widgets.py,sha256=E_pnpA1hxMIhenRCrHoQ5cik06jm2BAHCkl_eo-OudU,1264
|
|
10289
10289
|
simo/generic/base_types.py,sha256=djymox_boXTHX1BTTCLXrCH7ED-uAsV_idhaDOc3OLI,409
|
|
10290
|
-
simo/generic/controllers.py,sha256=
|
|
10291
|
-
simo/generic/forms.py,sha256=
|
|
10290
|
+
simo/generic/controllers.py,sha256=0XwPUlhjPKLKGhcZ5cqnw9BWGLA8xHfvhfwLhw1Kip0,56020
|
|
10291
|
+
simo/generic/forms.py,sha256=ICr_trZ7HRe2rQUqiqLdlBorG_LjbPsfPN3Yet2Vqqs,29708
|
|
10292
10292
|
simo/generic/gateways.py,sha256=dZQPzO23UbW9q4dEB9fqgt9Meg8mX94euXnRvfwxusY,18004
|
|
10293
10293
|
simo/generic/models.py,sha256=92TACMhJHadAg0TT9GnARO_R3_Sl6i-GGjhG_x7YdFI,7391
|
|
10294
10294
|
simo/generic/routing.py,sha256=elQVZmgnPiieEuti4sJ7zITk1hlRxpgbotcutJJgC60,228
|
|
@@ -10296,8 +10296,8 @@ simo/generic/socket_consumers.py,sha256=NfTQGYtVAc864IoogZRxf_0xpDPM0eMCWn0SlKA5
|
|
|
10296
10296
|
simo/generic/__pycache__/__init__.cpython-38.pyc,sha256=mLu54WS9KIl-pHwVCBKpsDFIlOqml--JsOVzAUHg6cU,161
|
|
10297
10297
|
simo/generic/__pycache__/app_widgets.cpython-38.pyc,sha256=0IoKRG9n1tkNRRkrqAeOQwWBPd_33u98JBcVtMVVCio,2374
|
|
10298
10298
|
simo/generic/__pycache__/base_types.cpython-38.pyc,sha256=ptw6axyAqemZA35oa6vzr7EihzvbhW9w7Y-G6kfDedU,555
|
|
10299
|
-
simo/generic/__pycache__/controllers.cpython-38.pyc,sha256=
|
|
10300
|
-
simo/generic/__pycache__/forms.cpython-38.pyc,sha256=
|
|
10299
|
+
simo/generic/__pycache__/controllers.cpython-38.pyc,sha256=2lEaWu6jNLSQtln6a0LzS8_pZWeCTP6gR0sW6D-Yv7k,35581
|
|
10300
|
+
simo/generic/__pycache__/forms.cpython-38.pyc,sha256=NpAI6871-9Y9PYqkTR7drmHPjN23ejmwT3jtCkp3Oqs,21328
|
|
10301
10301
|
simo/generic/__pycache__/gateways.cpython-38.pyc,sha256=B35GiB4wBRzvd91ugL89Z3vYADiLiERP0T-21CnLqKc,13324
|
|
10302
10302
|
simo/generic/__pycache__/models.cpython-38.pyc,sha256=PzlZsM1jxo3FVb7QDm3bny8UFwTsGrMQe4mj4tJ06eQ,5675
|
|
10303
10303
|
simo/generic/__pycache__/routing.cpython-38.pyc,sha256=xtxTUTBTdivzFyA5Wh7k-hUj1WDO_FiRq6HYXdbr9Ks,382
|
|
@@ -10468,8 +10468,8 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10468
10468
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10469
10469
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10470
10470
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10471
|
-
simo-2.0.
|
|
10472
|
-
simo-2.0.
|
|
10473
|
-
simo-2.0.
|
|
10474
|
-
simo-2.0.
|
|
10475
|
-
simo-2.0.
|
|
10471
|
+
simo-2.0.42.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10472
|
+
simo-2.0.42.dist-info/METADATA,sha256=h6oS3xPAonGIQ0s2nfnaLCOCRlFbEKfP3zteddVWKng,1730
|
|
10473
|
+
simo-2.0.42.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
10474
|
+
simo-2.0.42.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10475
|
+
simo-2.0.42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|