hombach / ioBroker.tibberlink

links tibber API data to be used in ioBroker
https://github.com/hombach/ioBroker.tibberlink
GNU General Public License v3.0
24 stars 5 forks source link

Invalid jsonConfig Calculator / Default values mixed up #547

Open floriangrotz opened 3 weeks ago

floriangrotz commented 3 weeks ago

Describe the bug
Error in Log

tibberlink has an invalid jsonConfig: [{"instancePath":"/items/_CalculatorTab/items/CalculatorList/items/0/tooltip","schemaPath":"#/items/properties/tooltip/type","keyword":"type","params":{"type":"string"},"message":"must be string"},{"instancePath":"/items/_CalculatorTab/items/CalculatorList","schemaPath":"#/patternProperties/%5E.%2B/allOf/27/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"/items/_CalculatorTab","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/9/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"","schemaPath":"#/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}]

Error (Unknown Status) occurred during: -execute calculator for best hours block in channel 1- : Cannot read properties of undefined (reading 'startsAt')

admin.0 | 2024-10-20 18:15:01.099 | warn | Object 0_userdata.0.Calculation_Tibber.ChargeFromGrid is invalid: Default value has to be type "boolean" but received type "string" This will throw an error up from js-controller version 7.0.0!

To Reproduce
Setup a new instance and cofigure calculator

Expected behavior
no errors

Screenshots & Logfiles
see above

Versions:

Additional context
Add any other context about the problem here.

hombach commented 3 weeks ago

@floriangrotz could you please post some screenshots of your configuration?

floriangrotz commented 2 weeks ago

Seems to be that the json file is somehow corrupt?

tb_calc_chan tl_calc tl_log
floriangrotz commented 2 weeks ago

After setting the channel to active

tb_log_2
hombach commented 2 weeks ago

There is a "null" as your Channel Home - do you get correct data from Tibber about your Home?

hombach commented 2 weeks ago

Also, there has to be any value in for Target State 2:

image

I added a verification, so you'll get an error message upon not filled values.

hombach commented 2 weeks ago

error message for jsonConfig has been identified as error in Schema file of ioBroker - issue has been filed

hombach commented 1 week ago

https://github.com/ioBroker/adapter-react-v5/issues/447