Commit graph

3499 commits

Author SHA1 Message Date
f52b556219
- icon_class should not be part of the backend model
- Interaction with entities should occur through the `entities.action`
  method, not by implementing native methods on each of the model
  objects
2022-04-08 16:49:47 +02:00
947b50b937
Added meta as a JSON field on the Entity table
Metadata attributes can now be defined and overridden on the object
itself, as well as on the database. Note that db settings will always
take priority in case of value conflicts.
2022-04-07 22:11:31 +02:00
db7c2095ea
Implemented meta property for entities (for now it only include icon_class) 2022-04-07 18:09:25 +02:00
e40b668380
Added missing docs 2022-04-07 01:49:13 +02:00
d3dc86a5e2
Added documentation for plugin/entity type registry 2022-04-07 01:47:42 +02:00
28026b0428
Trigger an EntityUpdateEvent when an entity state changes 2022-04-07 01:46:37 +02:00
44707731a8
Normalize UTC timezone on all the entity timestamps 2022-04-07 01:13:29 +02:00
948f37afd4
Filter by configured/enabled plugins when returning the entity/plugin registry 2022-04-07 01:04:06 +02:00
3b4f7d3dad
Added entities plugin to query/action entities 2022-04-07 00:22:54 +02:00
2eeb1d4fea
Entity objects are now JSON-able 2022-04-07 00:21:54 +02:00
26ffc0b0e1
Use Redis instead of an in-process map to store the entity/plugin registry
This is particularly useful when we want to access the registry from
another process, like the web server or an external script.
2022-04-07 00:18:11 +02:00
7b1a63e287
Make sure that flake8 and black don't step on each other's toes 2022-04-07 00:17:39 +02:00
1c6ff2fa49
(actually, the other way around is better) 2022-04-06 23:56:10 +02:00
d311629403
black validation should run before flake8 2022-04-06 23:48:27 +02:00
d52ae2fb80
Implemented RunnablePlugin.wait_stop() utility method 2022-04-05 23:33:02 +02:00
061268cdaf
Support for direct actions on native entities [WIP] 2022-04-05 23:22:54 +02:00
91ff47167b
Don't terminate the entities engine thread if a batch of entity records fails 2022-04-05 23:04:57 +02:00
fe0f3202fe
columns should be a property of the Entity object 2022-04-05 23:04:19 +02:00
8a70f1d38e
Replaced deprecated sqlalchemy.ext.declarative with sqlalchemy.orm 2022-04-05 22:47:44 +02:00
4b7eeaa4ed
Smarter merging of entities with the same key before they are committed 2022-04-05 21:17:58 +02:00
b43ed169c7
Added support for switches as native entities to zwave.mqtt plugin 2022-04-05 20:22:47 +02:00
0dac2c0e92
Fixed handling of possible null device definition in zigbee.mqtt 2022-04-05 00:31:04 +02:00
28b3672432
Added native support for switch entities to the zigbee.mqtt plugin. 2022-04-05 00:07:55 +02:00
9f2793118b
black fix 2022-04-04 22:43:04 +02:00
9d9ec1dc59
Added native support for switch entities to the smartthings plugin 2022-04-04 22:41:04 +02:00
b9c78ad913
Added native support for switch entities to switchbot.bluetooth plugin 2022-04-04 21:12:59 +02:00
91ff8d811f
Added native entities support in switchbot plugin 2022-04-04 20:56:28 +02:00
783238642d
Skip string and underscore normalization in black 2022-04-04 20:56:28 +02:00
ca25607262
Skip string and underscore normalization in black 2022-04-04 20:55:10 +02:00
53da19b638
Added entities engine support to WeMo switch plugin 2022-04-04 17:22:55 +02:00
7459f0115b
Added more pre-commit hooks 2022-04-04 17:22:54 +02:00
2c4c27855d
Added .exception action to logger plugin 2022-04-04 17:22:54 +02:00
9c25a131fa
get_bus() should return a default RedisBus() instance if the main bus is not registered 2022-04-04 17:22:54 +02:00
1b30bfc454
Added more pre-commit hooks 2022-04-04 17:21:47 +02:00
4ee7e4db29
Basic support for entities on the local db and implemented support for switch entities on the tplink plugin 2022-04-04 16:50:17 +02:00
486801653a
Added .exception action to logger plugin 2022-04-03 00:26:39 +02:00
f7c594cc3f
get_bus() should return a default RedisBus() instance if the main bus is not registered 2022-04-02 22:47:23 +02:00
b1491b8048
Better style for scrollbars 2022-03-30 17:42:09 +02:00
96a2d8bef0
Fixed size for nav icons with static images 2022-03-30 13:53:10 +02:00
e261dcc27a
More UI fixes 2022-03-30 01:43:59 +02:00
d0790aaba3
Better style for toggle switches 2022-03-29 23:45:57 +02:00
bb28617cc9
Refactored slider and range-slider components 2022-03-29 14:36:17 +02:00
e1e6da9307
Fixed icon size for img tags in nav bar 2022-03-28 16:00:18 +02:00
f6ce0d7200
Fixed broken paddings after bulma removal 2022-03-28 13:13:31 +02:00
ed5f7070a2
Removed bulma dependency from frontend
The UI is now much faster, the build process completes within one minute
(it used to take >15 minutes), and the size of the bundles has been
reduced by ~70%.
2022-03-28 12:54:36 +02:00
5ee47902f4
Refactored camera stream route 2022-03-28 12:44:04 +02:00
128b45686a
Updated Vue dependencies for the webapp 2022-03-28 01:19:21 +02:00
3d192a9733
Removed unused import 2022-03-27 22:01:25 +02:00
08acaad218
Merge pull request #284 from BlackLight/dependabot/npm_and_yarn/platypush/backend/http/webapp/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6 in /platypush/backend/http/webapp
2022-03-27 18:36:51 +02:00
385914c04a
Added missing docs for gpio events 2022-03-27 18:30:46 +02:00