Python Plugin: MillHeat
Posted: Wednesday 28 November 2018 12:03
Hi,
I'm building a domoticz python plugin for a MillHeat WiFi heater: https://github.com/appelflap/domoticz-millheat
And it uses this code as a connector to the heater: https://github.com/Danielhiversen/pymill
It creates 3 devices per heater found through the API: Status (on/off, read only), Temperature and Thermostat (editable)
I've tested it on my own host, with ubuntu 18.04 running Domoticz stable.
And I installed it on a Pi for a friend and it doesn't go further than the 'Started, Entering, Initialized'..
I did set Debug to enabled on both hosts.. but the Pi doesnt give a lot of info.
Anyone got an idea how to investigate further?
[edit]And one other thing: domoticz seems to hang if I want to change/remove the hardware (on my own host).. any ideas?[/edit]
This is my version:
This is the Pi output:
This is the running version:
I'm building a domoticz python plugin for a MillHeat WiFi heater: https://github.com/appelflap/domoticz-millheat
And it uses this code as a connector to the heater: https://github.com/Danielhiversen/pymill
It creates 3 devices per heater found through the API: Status (on/off, read only), Temperature and Thermostat (editable)
I've tested it on my own host, with ubuntu 18.04 running Domoticz stable.
And I installed it on a Pi for a friend and it doesn't go further than the 'Started, Entering, Initialized'..
I did set Debug to enabled on both hosts.. but the Pi doesnt give a lot of info.
Anyone got an idea how to investigate further?
[edit]And one other thing: domoticz seems to hang if I want to change/remove the hardware (on my own host).. any ideas?[/edit]
This is my version:
Code: Select all
Version: 4.10224
Build Hash: 1b7e859d
Compile Date: 2018-11-22 08:51:25
dzVents Version: 2.4.8
Python Version: 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]
Code: Select all
Nov 26 16:11:04 kermit domoticz[25924]: 2018-11-26 16:11:04.032 Status: (MillHeat) Started.
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.705 Status: (MillHeat) Entering work loop.
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.705 Status: (MillHeat) Initialized version 0.1.4, author 'appelflap'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.715 (MillHeat) Device count: 6
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device: 1 - ID: 850, Name: 'Bijkeuken Status', nValue: 0, sValue: '1'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device ID: '850'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Name: 'Bijkeuken Status'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device nValue: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device sValue: '1'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device LastLevel: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Image: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device: 2 - ID: 851, Name: 'Bijkeuken Temperature', nValue: 0, sValue: '15.0'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device ID: '851'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Name: 'Bijkeuken Temperature'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device nValue: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device sValue: '15.0'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device LastLevel: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Image: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device: 3 - ID: 852, Name: 'Bijkeuken Thermostat', nValue: 0, sValue: '15'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device ID: '852'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Name: 'Bijkeuken Thermostat'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device nValue: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device sValue: '15'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device LastLevel: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Image: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device: 4 - ID: 853, Name: 'Slaapkamer Status', nValue: 0, sValue: '0'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device ID: '853'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Name: 'Slaapkamer Status'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device nValue: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device sValue: '0'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device LastLevel: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Image: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device: 5 - ID: 854, Name: 'Slaapkamer Temperature', nValue: 0, sValue: '16.0'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device ID: '854'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device Name: 'Slaapkamer Temperature'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device nValue: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device sValue: '16.0'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.716 (MillHeat) Device LastLevel: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Device Image: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Device: 6 - ID: 855, Name: 'Slaapkamer Thermostat', nValue: 0, sValue: '15'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Device ID: '855'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Device Name: 'Slaapkamer Thermostat'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Device nValue: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Device sValue: '15'
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Device LastLevel: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Device Image: 0
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.717 (MillHeat) Pushing 'PollIntervalDirective' on to queue
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.966 (MillHeat) Indexing device 'DeviceID=DC431, Name=Bijkeuken Status, Unit=1, ID=850, Type=244' to the devlist
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.966 (MillHeat) Indexing device 'DeviceID=DC432, Name=Bijkeuken Temperature, Unit=2, ID=851, Type=80' to the devlist
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.967 (MillHeat) Indexing device 'DeviceID=DC433, Name=Bijkeuken Thermostat, Unit=3, ID=852, Type=242' to the devlist
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.967 (MillHeat) Indexing device 'DeviceID=F3791, Name=Slaapkamer Status, Unit=4, ID=853, Type=244' to the devlist
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.968 (MillHeat) Indexing device 'DeviceID=F3792, Name=Slaapkamer Temperature, Unit=5, ID=854, Type=80' to the devlist
Nov 26 16:11:05 kermit domoticz[25924]: 2018-11-26 16:11:05.968 (MillHeat) Indexing device 'DeviceID=F3793, Name=Slaapkamer Thermostat, Unit=6, ID=855, Type=242' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.077 (MillHeat) createDevices called
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.078 (MillHeat) Heater DC43 (name=Bijkeuken, device_id=56387, current_temp=15.0, set_temp=15, power_status=1, is_heating=1)
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.079 (MillHeat) Heater F379 (name=Slaapkamer, device_id=62329, current_temp=16.0, set_temp=15, power_status=1, is_heating=0)
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.079 (MillHeat) Indexing device 'DeviceID=DC431, Name=bijkeuken Status, Unit=1, ID=850, Type=244' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.079 (MillHeat) Indexing device 'DeviceID=DC432, Name=bijkeuken Temperature, Unit=2, ID=851, Type=80' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.080 (MillHeat) Indexing device 'DeviceID=DC433, Name=bijkeuken Thermostat, Unit=3, ID=852, Type=242' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.080 (MillHeat) Indexing device 'DeviceID=F3791, Name=Slaapkamer Status, Unit=4, ID=853, Type=244' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.081 (MillHeat) Indexing device 'DeviceID=F3792, Name=Slaapkamer Temperature, Unit=5, ID=854, Type=80' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.081 (MillHeat) Indexing device 'DeviceID=F3793, Name=Slaapkamer Thermostat, Unit=6, ID=855, Type=242' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.081 (MillHeat) Indexing device 'DeviceID=DC431, Name=Bijkeuken Status, Unit=1, ID=850, Type=244' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.082 (MillHeat) Indexing device 'DeviceID=DC432, Name=Bijkeuken Temperature, Unit=2, ID=851, Type=80' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.082 (MillHeat) Indexing device 'DeviceID=DC433, Name=Bijkeuken Thermostat, Unit=3, ID=852, Type=242' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.082 (MillHeat) Indexing device 'DeviceID=F3791, Name=Slaapkamer Status, Unit=4, ID=853, Type=244' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.083 (MillHeat) Indexing device 'DeviceID=F3792, Name=Slaapkamer Temperature, Unit=5, ID=854, Type=80' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.083 (MillHeat) Indexing device 'DeviceID=F3793, Name=Slaapkamer Thermostat, Unit=6, ID=855, Type=242' to the devlist
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.084 (MillHeat) Processing 'PollIntervalDirective' message
Nov 26 16:11:06 kermit domoticz[25924]: 2018-11-26 16:11:06.084 (MillHeat) Heartbeat interval set to: 60.
Nov 26 16:11:11 kermit domoticz[25924]: 2018-11-26 16:11:11.070 Status: (MillHeat) Stop directive received.
Nov 26 16:11:11 kermit domoticz[25924]: 2018-11-26 16:11:11.070 (MillHeat) Pushing 'onStopCallback' on to queue
Nov 26 16:11:11 kermit domoticz[25924]: 2018-11-26 16:11:11.070 Status: (MillHeat) Exiting work loop.
Nov 26 16:11:11 kermit domoticz[25924]: 2018-11-26 16:11:11.081 (MillHeat) Processing 'onStopCallback' message
Nov 26 16:11:11 kermit domoticz[25924]: 2018-11-26 16:11:11.081 (MillHeat) Calling message handler 'onStop'.
Nov 26 16:11:11 kermit domoticz[25924]: 2018-11-26 16:11:11.081 (MillHeat) Plugin is stopping
Code: Select all
2018-11-27 12:20:40.002 Status: (MillHeat) Started.
2018-11-27 12:20:41.420 Status: (MillHeat) Entering work loop.
2018-11-27 12:20:41.420 Status: (MillHeat) Initialized version 0.1.4, author 'appelflap'
Code: Select all
Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 16:24:51
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]