PiDome Domotica/Home Automation
-
Could you make a screenshot of your created device it's
- Group control details
- Control details
And check in the file logs/system/appLog.txt if you got messages mentioning mysensors? (quite at the end, you can do a "tail-f log/system/appLog.txt -n 200" in putty "ctrl+c" to stop it, select lines, click (copy) and paste them)
-
Well that would give a big amount of data, and it definitely will help... If you do not mind i will send my email address using chat so i can send you files if needed what could help in solving this quicker.
-
Send via chat
-
With help from @AndrewB The issue has been solved.
The battery level via the MQTT gateway seems to need some extra attention as it is broadcasted in an unexpected mqtt path.
to show battery level using mqtt please use group id "255" and control id "V_"
Cheers!
-
@ericvdb said:
Hi eric,try to set the on command to 3A1 and the off command to 3A0 in the V_LIGHT toggle control. I know this is not what you want because this means you have to create a device for every address. And with flexible addresses you want to use the options so users can enter them.
You are using the device editor the correct way, it currently only is not implemented yet. There is a task on my to-do list to take a look on how common fields for controls can use the options created in the editor.
You know what, send an email to support@pidome.org with some of your device details, and I will come up with something. (If the programming API was ready i could have given some guidelines, but unfortunately it is not yet).
P.S. it is 00:46 here, so expect an answer tomorrow ;).
[edit]typo's[/edit]
@John
Hi John,I also stuck on the same problem as Eric has described. His post is quite a long time ago, so I don't know, if there is a solution now. The point is that I want not only transfer a status on/off to the mysensor node but the house and device code for the RF switches. I tried to do this as you have answered but if i look in the log file it say only true or false as payload to the sensor.
Is this a limitation of using V_LIGHT (allowing only boolean coded payload)? But I also tried to use other V_* like V_IR_SEND, it was the same result.
Thanks in advance.
-
Sorry for the late response, have you tried to change the datatype to string with the codes as the values?
-
Hi John,
appLog.txt
I also tried using datatype string but it doesen't work. Meanwhile I have studies the log files more detailed and found the following behavior:-
when defining the device skeletal and when updating the derived device (first approx. 25 lines in the log file V_STATUS is declared as string with values 51 resp. 52 as specified in the web interface. The entity is "Modul 433 MHz".
-
Later on, when using the toggle switch in the web interface the value has changed in the decription in the log file (see line 164 or 185) value has been changed to on/off. With this definition it seem that the mysensors-Plugin is feeded has been changed from the specified values.
My conclusion is that the change is taking place somewhere outside the mysensors-plugin.
By the way, if I change the type to string do I have to use quotation marks in the web interface?
Thanks a lot for your support.
Martin
-