ioBroker / ioBroker.wolf

Connect WOLF heating, solar and domestic ventilation
MIT License
25 stars 16 forks source link

boolean values #98

Open fred0815 opened 1 year ago

fred0815 commented 1 year ago

In addition I found some inconsistencies regarding "boolean" values.

while creating the objects for Iobroker I have added "DPT_Bool" to the "if" statement

if (adapter.config.bool_status && ['DPT_Switch', 'DPT_Enable', 'DPT_OpenClose', 'DPT_Bool'].includes(data.type)) { data.commonType = 'boolean';

corrected some "'true'" and "'false'" values to "true" and "false" (without inverted commas) to be "real" boolen values..

main.js.txt

May be @Apollon77 you can add some "verifying code" if someone changed the "status als Boolean" in the Wolf adapter instances view after all objects have been created in Iobroker already. Otherwise you will get tons of "Infos" of incorrent Type Informations in the log file...