GithubHelp home page GithubHelp logo

domoticz_toon's Introduction

domoticz-rooted-toon

A python plugin to interface Domoticz with a rooted version of the Tooon thermostat

install plugin

  1. Go in your Domoticz directory using a command line and open the plugins directory: cd domoticz/plugins
  2. clone the plugin: git clone https://github.com/MadPatrick/domoticz_toon
  3. Restart Domoticz: sudo systemctl restart domoticz

Currently the follow functionality is being available:

  • Setpoint
  • Boiler pressure
  • Gas consumption
  • Power Consumption
  • Boiler modulation
  • Room Temperatuur
  • Toon Programs
  • Toon Scenes
  • Toon Boiler status
  • Toon Program information

Use at your own risk.

The P1 values are predefined for most common Toons. It is possible that your Toon has different values. You can check this via the JSON link

http://TOON_IP/hdrv_zwave?action=getDevices.json

Unfortunately, there is no good information in the JSON to determine which number belongs to which device. Also, there are different numbers between different Toon's, such as dev_2.x or dev_3.x....... So basically it's a bit of trail and error

For example:
You can see at dev_2.4 values in the field "CurrentElectricityFlow" and "CurrentElectricityQuantity"
The correct sequence is :

Gas ; elec_delivered_normal ; elec_delivered_low ; elec_received_normal ; elec_received_low

image

You can fill in these numbers in the user defined field seperated by ;

Configuration menu

image

installed devices

image

domoticz_toon's People

Contributors

janjaapko avatar madpatrick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

menno000

domoticz_toon's Issues

Domoticz/DomoticzEx modules not found in interpreter

I don't know if this is an issue, but this error pops up by start or stopping the plugin

2023-01-24 18:55:20.192 Status: Toon: Started.
2023-01-24 18:55:20.193 Status: Toon: Entering work loop.
2023-01-24 18:55:20.279 Status: Toon: Initialized version 1.4.13, author 'MadPatrick'
2023-01-24 18:55:20.092 Error: (FindModule) Domoticz/DomoticzEx modules not found in interpreter.

Humidity sensor

I'm trying to get the Humidity sensor working, but somehow it will no succeed

This is the definition in the plugin

    def onMessagetoonTSCinfo(self, Connection, Response):	
        Domoticz.Debug("onMessagetoonTSCinfo called")
        if 'humidity' in Response:
            humidity=float(Response['humidity'])
            strhumidity="%.1f" % humidity
            #UpdateDevice(Unit=RoomHumidity, nValue=0, sValue=strhumidity+";"+strtemperature)
            UpdateDevice(Unit=RoomHumidity, nValue=strhumidity, sValue=1)

But this is giving the following error

2023-01-21 10:32:28.194 Error: Toon: (CDevice_update) Toon - Luchtvochtigheid: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2023-01-21 10:32:28.194 Error: Toon: Call to function 'CDevice_update' failed, exception details:
2023-01-21 10:32:28.194 Error: Toon: Exception: 'TypeError'. No traceback available.

When i change strhumidiy in a value, like 47 it is working

UpdateDevice(Unit=RoomHumidity, nValue=47, sValue=1)

image

Toon freezes due overload of communication

The Toon becomes slow and uncontrolable after a few hours/day.
A reboot of Toon solves the issue for the moment and freezes again after a period of time
Changing the heartbeat to 60 looks like the solution (for now)

I see a lot of communication in the log of "... called"
espacially "onDisconnect called" 4x in 1 mSec

2023-01-15 13:42:36.161 Toon: onMessage called
2023-01-15 13:42:36.161 Toon: onMessageZwaveInfo called
2023-01-15 13:42:42.133 Toon: onDisconnect called
2023-01-15 13:42:42.133 Toon: onDisconnect called
2023-01-15 13:42:42.133 Toon: onDisconnect called
2023-01-15 13:42:42.133 Toon: onDisconnect called
2023-01-15 13:43:36.087 Toon: onHeartbeat called
2023-01-15 13:43:36.139 Toon: onConnect called
2023-01-15 13:43:36.140 Toon: onConnect called
2023-01-15 13:43:36.140 Toon: onConnect called
2023-01-15 13:43:36.140 Toon: onConnect called
2023-01-15 13:43:36.193 Toon: onMessage called
2023-01-15 13:43:36.193 Toon: onMessageBoilerInfo called
2023-01-15 13:43:36.193 Toon: onMessage called
2023-01-15 13:43:36.193 Toon: onMessagetoonTSCinfo called
2023-01-15 13:43:36.193 Toon: onMessage called
2023-01-15 13:43:36.193 Toon: onMessageThermostatInfo called
2023-01-15 13:43:36.199 Toon: onMessage called
2023-01-15 13:43:36.199 Toon: onMessageZwaveInfo called
2023-01-15 13:43:42.361 Toon: onDisconnect called
2023-01-15 13:43:42.361 Toon: onDisconnect called
2023-01-15 13:43:42.361 Toon: onDisconnect called
2023-01-15 13:43:42.361 Toon: onDisconnect called
2023-01-15 13:44:36.057 Toon: onHeartbeat called
2023-01-15 13:44:36.108 Toon: onConnect called
2023-01-15 13:44:36.108 Toon: onConnect called
2023-01-15 13:44:36.109 Toon: onConnect called
2023-01-15 13:44:36.109 Toon: onConnect called
2023-01-15 13:44:36.161 Toon: onMessage called
2023-01-15 13:44:36.161 Toon: onMessageBoilerInfo called
2023-01-15 13:44:36.162 Toon: onMessage called
2023-01-15 13:44:36.162 Toon: onMessagetoonTSCinfo called
2023-01-15 13:44:36.167 Toon: onMessage called
2023-01-15 13:44:36.167 Toon: onMessageThermostatInfo called
2023-01-15 13:44:36.181 Toon: onMessage called
2023-01-15 13:44:36.181 Toon: onMessageZwaveInfo called
2023-01-15 13:44:42.408 Toon: onDisconnect called
2023-01-15 13:44:42.408 Toon: onDisconnect called
2023-01-15 13:44:42.408 Toon: onDisconnect called
2023-01-15 13:44:42.408 Toon: onDisconnect called
2023-01-15 13:45:36.056 Toon: onHeartbeat called
2023-01-15 13:45:36.107 Toon: onConnect called
2023-01-15 13:45:36.107 Toon: onConnect called
2023-01-15 13:45:36.107 Toon: onConnect called
2023-01-15 13:45:36.107 Toon: onConnect called
2023-01-15 13:45:36.158 Toon: onMessage called
2023-01-15 13:45:36.158 Toon: onMessageBoilerInfo called
2023-01-15 13:45:36.159 Toon: onMessage called
2023-01-15 13:45:36.159 Toon: onMessageThermostatInfo called
2023-01-15 13:45:36.168 Toon: onMessage called
2023-01-15 13:45:36.168 Toon: onMessagetoonTSCinfo called
2023-01-15 13:45:36.173 Toon: onMessage called
2023-01-15 13:45:36.174 Toon: onMessageZwaveInfo called
2023-01-15 13:45:42.194 Toon: onDisconnect called
2023-01-15 13:45:42.194 Toon: onDisconnect called
2023-01-15 13:45:42.194 Toon: onDisconnect called
2023-01-15 13:45:42.194 Toon: onDisconnect called
2023-01-15 13:46:36.094 Toon: onHeartbeat called
2023-01-15 13:46:36.145 Toon: onConnect called
2023-01-15 13:46:36.145 Toon: onConnect called
2023-01-15 13:46:36.145 Toon: onConnect called
2023-01-15 13:46:36.145 Toon: onConnect called
2023-01-15 13:46:36.196 Toon: onMessage called
2023-01-15 13:46:36.196 Toon: onMessageThermostatInfo called
2023-01-15 13:46:36.202 Toon: onMessage called
2023-01-15 13:46:36.202 Toon: onMessagetoonTSCinfo called
2023-01-15 13:46:36.202 Toon: onMessage called
2023-01-15 13:46:36.202 Toon: onMessageBoilerInfo called
2023-01-15 13:46:36.203 Toon: onMessage called
2023-01-15 13:46:36.203 Toon: onMessageZwaveInfo called
2023-01-15 13:46:42.427 Toon: onDisconnect called
2023-01-15 13:46:42.427 Toon: onDisconnect called
2023-01-15 13:46:42.427 Toon: onDisconnect called
2023-01-15 13:46:42.427 Toon: onDisconnect called
2023-01-15 13:47:36.075 Toon: onHeartbeat called
2023-01-15 13:47:36.129 Toon: onConnect called
2023-01-15 13:47:36.130 Toon: onConnect called
2023-01-15 13:47:36.130 Toon: onConnect called
2023-01-15 13:47:36.130 Toon: onConnect called
2023-01-15 13:47:36.184 Toon: onMessage called
2023-01-15 13:47:36.184 Toon: onMessageBoilerInfo called
2023-01-15 13:47:36.184 Toon: onMessage called
2023-01-15 13:47:36.184 Toon: onMessagetoonTSCinfo called
2023-01-15 13:47:36.184 Toon: onMessage called
2023-01-15 13:47:36.185 Toon: onMessageThermostatInfo called
2023-01-15 13:47:36.190 Toon: onMessage called
2023-01-15 13:47:36.190 Toon: onMessageZwaveInfo called
2023-01-15 13:47:42.661 Toon: onDisconnect called
2023-01-15 13:47:42.661 Toon: onDisconnect called
2023-01-15 13:47:42.661 Toon: onDisconnect called
2023-01-15 13:47:42.661 Toon: onDisconnect called
2023-01-15 13:48:36.067 Toon: onHeartbeat called
2023-01-15 13:48:42.808 Toon: onDisconnect called
2023-01-15 13:48:42.808 Toon: onDisconnect called
2023-01-15 13:48:42.808 Toon: onDisconnect called
2023-01-15 13:48:42.808 Toon: onDisconnect called

Is this related to the problem ?

do other people have the same problem?

Error message : connect request from 'Toon' ignored.

Occasionally there is error message in Domoticz

2023-01-17 21:30:03.189 Error: Toon: CConnection_connect, connect request from 'Toon' ignored. Transport is connected.
2023-01-17 23:00:03.194 Error: Toon: CConnection_connect, connect request from 'Toon' ignored. Transport is connected.
2023-01-18 21:30:03.167 Error: Toon: CConnection_connect, connect request from 'Toon' ignored. Transport is connected.

When this appears the command is not executed

No Data from P1

Hi,

I just installed this plugin for my rooted Toon V1 as per instructions I tried V1 and also userdefined.
However I don't get data for the P1 devices.

Hemant

Update Scene by setpoint change

When chaning the setpoint on the Toon, the Scene is not update accodingly if this has the Scene temperature

So when
Scene programmed setting "Sleep" has value 17.0°C
When yo change the setpoint from 18.0 to 17.0 the Scene remains on the last set Scene and will not be update to Scene "Sleep"

The scenes are set in

strPrograms = ['Comfort', 'Home', 'Sleep', 'Away','Manual']

         <param field="Scene1" label="Temp Away " width="50px" required="true" default="17.0" >
        <param field="Scene2" label="Temp Sleep " width="50px" required="true" default="18.0" />
        <param field="Scene3" label="Temp Home " width="50px" required="true" default="19.5" />
        <param field="Scene4" label="Temp Comfort " width="50px" required="true" default="20.0" />

So if the setpoint is set to 17.0 is equals Scene1 and it must change Switch strPrograms to "Sleep"

repeats of message : Toon set command executed with status: ok

Not sure if this should be the case, but this log message appears every heartbeat
It start not directly after starting the plug, but after the first command

2023-01-30 18:49:09.162 Status: Toon: Started.
2023-01-30 18:49:09.162 Status: Toon: Entering work loop.
2023-01-30 18:49:09.162 Status: NotificationSystem: thread started...
2023-01-30 18:49:09.165 Status: EventSystem: reset all events...
2023-01-30 18:49:09.166 Status: EventSystem: reset all device statuses...
2023-01-30 18:49:09.202 Status: Python EventSystem: Initializing event module.
2023-01-30 18:49:09.202 Status: EventSystem: Started
2023-01-30 18:49:09.202 Status: EventSystem: Queue thread started...
2023-01-30 18:49:09.278 Status: Toon: Initialized version 1.4.15, author 'MadPatrick'
2023-01-30 18:49:09.647 Status: PluginSystem: 1 plugins started.
2023-01-30 18:49:58.336 Toon: Toon New setpoint: 19.5
2023-01-30 18:49:58.445 Toon: Toon set command executed with status: ok
2023-01-30 18:49:58.284 Status: User: patrick initiated a SetPoint command
2023-01-30 18:50:02.871 Toon: Toon New setpoint: 19.0
2023-01-30 18:50:02.824 Status: User: patrick initiated a SetPoint command
2023-01-30 18:50:02.873 Error: Toon: CConnection_connect, connect request from 'Toon' ignored. Transport is connected.
2023-01-30 18:50:09.321 Toon: Toon set command executed with status: ok
2023-01-30 18:50:26.363 Toon: Toon Program
2023-01-30 18:50:26.363 Toon: 40 -> 0
2023-01-30 18:50:26.473 Toon: Toon set command executed with status: ok
2023-01-30 18:50:26.349 Status: User: patrick (IP: 192.168.1.207) initiated a switch command (4/Toon - Scene/Set Level)
2023-01-30 18:50:29.213 Error: Toon: CConnection_connect, connect request from 'Toon' ignored. Transport is connected.
2023-01-30 18:50:32.244 Toon: Toon Program
2023-01-30 18:50:32.244 Toon: 30 -> 1
2023-01-30 18:50:32.205 Status: User: patrick (IP: 192.168.1.207) initiated a switch command (4/Toon - Scene/Set Level)
2023-01-30 18:50:32.247 Error: Toon: CConnection_connect, connect request from 'Toon' ignored. Transport is connected.
2023-01-30 18:50:49.336 Toon: Toon set command executed with status: ok
2023-01-30 18:51:09.287 Toon: Toon set command executed with status: ok
2023-01-30 18:51:29.305 Toon: Toon set command executed with status: ok
2023-01-30 18:51:49.319 Toon: Toon set command executed with status: ok
2023-01-30 18:52:09.342 Toon: Toon set command executed with status: ok
2023-01-30 18:52:29.307 Toon: Toon set command executed with status: ok
2023-01-30 18:52:49.292 Toon: Toon set command executed with status: ok
2023-01-30 18:53:09.332 Toon: Toon set command executed with status: ok
2023-01-30 18:53:29.314 Toon: Toon set command executed with status: ok
2023-01-30 18:53:49.330 Toon: Toon set command executed with status: ok
2023-01-30 18:54:09.340 Toon: Toon set command executed with status: ok
2023-01-30 18:54:29.291 Toon: Toon set command executed with status: ok
2023-01-30 18:54:49.294 Toon: Toon set command executed with status: ok
2023-01-30 18:55:09.312 Toon: Toon set command executed with status: ok

Selector sensors we use

I use the Toon V1
I have no hum and pressure sensor.
And i do not use the P1 data via the toon.
Is there a option to prevent/use sensors we not use?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.