Page 2 of 2
Re: Python Plugin: MillHeat
Posted: Thursday 19 March 2020 10:58
by copywizard
appelflap wrote: ↑Wednesday 18 March 2020 11:54
Did you install the pymill component using this command?
pip3 install millheater
Thansk alot ! that helped i hav eno idea why i did not do that? i think i did pip instead of pip3
the error is fixed but i still have the same problem as mentioned above that the devices are created and deleted directly.
Could you explain to me in a bit of noob terms where and what to edit the python script to allow it to work i think its a gen2 device problem like the ppl above in this thread.
P.s. i got it wokring somewhat using the instructions from @sema2022
but i,am only stuck on this part
"Further I changed the heater values in line 130 from “0, str(myHeaters[heaterId].is_heating))” to “myHeaters[heaterId].power_status, str(myHeaters[heaterId].is_heating))”. This might be due to the gen2 Wifi Socket having an extra function where you can choose to utilize the internal thermostat function combined with the power On/Off switch or not, and this is controlled by the “fan_status=1” parameters, or... ?"
i can change the temperature en the temperature read out is correct but i cannot turn it on/off thru domoticz.
if you could help met find what line i need to change and where in the plugin.py script it would be much appriciated!
Re: Python Plugin: MillHeat
Posted: Thursday 02 April 2020 7:45
by jobvr
Yes, the part from Sema2022 helped me a lot as well.
I think the plugin is running fine now, when I restart the domoticz server I see:
Code: Select all
2020-04-02 07:35:02.045 Status: (Bathroom_Heater) Started.
2020-04-02 07:35:03.002 (Bathroom_Heater) onStart called
2020-04-02 07:35:03.000 Status: (Bathroom_Heater) Entering work loop.
2020-04-02 07:35:03.000 Status: (Bathroom_Heater) Initialized version 0.1.4, author 'appelflap
And on regular intervals is see
Code: Select all
2020-04-02 07:36:14.983 (Bathroom_Heater) onHeartbeat called
2020-04-02 07:36:15.347 (Bathroom_Heater) createDevices called
without any errors. However NO device is created

Any suggestions ??
Re: Python Plugin: MillHeat
Posted: Friday 08 May 2020 6:22
by copywizard
Still nobody that can or will help us ? i got it working but the switch is still not working and the devices disappear from my device list so now and then.
any help would be appreciated
Re: Python Plugin: MillHeat
Posted: Wednesday 02 September 2020 11:19
by R1ch9rd80
Hi,
I've installed the MillHeat plugin. I'm running Domoticz (2020.2 build 12256) on a Synology NAS.
When I enable the MillHeat plugin on the hardware tab, I see the following in the log:
2020-08-30 19:43:12.066 Error: (MillHeat) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/millheat/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload:/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages'.
2020-08-30 19:43:12.067 Error: (Millheat) Module Import failed, exception: 'ImportError'
2020-08-30 19:43:12.067 Error: (Millheat) Module Import failed: ' Name: mill'
2020-08-30 19:43:12.067 Error: (Millheat) Error Line details not available.
After a while I see the following constantly in the log:
2020-08-30 20:32:16.923 Error: Millheat hardware (22) thread seems to have ended unexpectedly
Does anyone have an idea? I am quite a novice with Domoticz and Python scripts, so help will be appreciated!