Added possibility to define the data type of Homematic #24078
The Homematic CCU needs that we send the correct XML-RPC Data Type for setValue, but parsing the yaml will always return a string.
This example request will be ignored by CCU:
the value should be a int:
Homematic component uses pyhomematic and pyhomematic uses xmlrpc.client.ServerProxy, an as stated under https://docs.python.org/3/library/xmlrpc.client.html#xmlrpc.client.ServerProxy, python data types are converted into the correct XML-RPC Type.
I added an optional value_type parameter where you are able to define the desired data type. Supported data types are (I just used the same naming as XML-RPC Types):
Example entry for