Commit graph

17 commits

Author SHA1 Message Date
MartinHjelmare
45fe37a301 Add mysensors component and switch platform
* Add a general mysensors component. This sets up the serial comm
        with the gateway through pymysensors. The component also
        contains a decorator function for the callback function of
        mysensors platforms. Mysensors platforms should create a
        function that listens for the node update event fired by the
        mysensors component. This function should call another
        function, that uses the decorator, and returns a dict. The dict
        should contain a list of which mysensors V_TYPE values the
        platform handles, the platfrom class and the add_devices
        function (from setup_platform).
    * Change existing mysensors sensor platform to depend on the new
        mysensors component.
    * Add a mysensors switch platform. The switch platform takes
        advantage of new functionality from the the fork of pymysensors
        https://github.com/MartinHjelmare/pymysensors, that enables the
        gateway to send commands to change node child values.
    * Change const and is_metric to global constants, in the mysensors
        component and import const depending on the mysensors version
        used.
    * Change variables devices and gateway to global variables.
    * Add some debug logging at INFO log level.
2015-11-06 01:58:41 +01:00
Fabian Affolter
3ea167203f Remove configuration details 2015-10-23 22:48:30 +02:00
Andrew Thigpen
384b3d0d17 Update to latest mysensors library.
* Adds JSON persistence support.
* Adds documentation comments for configuration options.
2015-10-11 17:05:08 -05:00
Paulus Schoutsen
326d23de38 Fix pip checking if zip files are installed 2015-09-08 19:49:27 -07:00
Fabian Affolter
914a6dff5e Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:40:09 +02:00
Ryan Kraus
893ae15042 Changed component REQUIREMENTS to absolute versions. 2015-08-29 21:39:50 -04:00
Paulus Schoutsen
e984eedffd Fix mysensors import 2015-08-16 21:06:50 -07:00
Paulus Schoutsen
4edf53899d Port PyMySensors from external to requirements.txt 2015-07-19 23:25:13 -07:00
Paulus Schoutsen
940b2998ea Add REQUIREMENTS list to components 2015-07-07 00:01:46 -07:00
Andrew Thigpen
8b8cb28259 Update mysensors component to read debug, persistence values. 2015-05-14 19:02:10 -05:00
Fabian Affolter
fdb46d80ba Update documentation 2015-05-13 19:06:17 -07:00
Andrew Thigpen
3cff05ef91 Create entity for each sensor variable.
Refactors to create a separate entity for each variable associated with
a child sensor.
2015-04-25 21:08:49 -05:00
Andrew Thigpen
4d47d313f9 Add mysensors support for metric/imperial units. 2015-04-05 17:25:10 -05:00
Andrew Thigpen
0e9d826d41 Push mysensor state instead of polling. 2015-04-05 17:25:10 -05:00
Andrew Thigpen
c72a735851 Use stop method for mysensors on shutdown. 2015-04-05 17:25:09 -05:00
Andrew Thigpen
c41d7b8f6d Refactor and update to use latest pymysensors. 2015-04-05 17:25:06 -05:00
theolind
e87652e95f added HA module for mysensors 2015-04-02 19:59:44 +02:00