Update van "Text" device fails
Posted: Wednesday 11 September 2024 14:56
I create a "Text" device in a python plugin
Like this:
Domoticz.Device(Name="lowestPriceToday", Unit=3, TypeName="Text",Options=7).Create()
and attempt to update like this:
Devices[3].Update(nValue=price, sValue="{:.2f} €".format(price))
where price is a float.
I get this error:
2024-09-11 14:52:11.172 Error: Next Energy: (CDevice_update) Next Energy - lowestPriceToday: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2024-09-11 14:52:11.172 Error: Next Energy: Call to function 'CDevice_update' failed, exception details:
2024-09-11 14:52:11.172 Error: Next Energy: (CDevice_update) Next Energy - lowestPriceToday: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2024-09-11 14:52:11.172 Error: Next Energy: Call to function 'CDevice_update' failed, exception details:
2024-09-11 14:52:11.173 Error: Next Energy: Exception: 'TypeError'. No traceback available.
Any suggestions?
This is running on Raspian Buster, with Domoticz 2024.7
Like this:
Domoticz.Device(Name="lowestPriceToday", Unit=3, TypeName="Text",Options=7).Create()
and attempt to update like this:
Devices[3].Update(nValue=price, sValue="{:.2f} €".format(price))
where price is a float.
I get this error:
2024-09-11 14:52:11.172 Error: Next Energy: (CDevice_update) Next Energy - lowestPriceToday: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2024-09-11 14:52:11.172 Error: Next Energy: Call to function 'CDevice_update' failed, exception details:
2024-09-11 14:52:11.172 Error: Next Energy: (CDevice_update) Next Energy - lowestPriceToday: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2024-09-11 14:52:11.172 Error: Next Energy: Call to function 'CDevice_update' failed, exception details:
2024-09-11 14:52:11.173 Error: Next Energy: Exception: 'TypeError'. No traceback available.
Any suggestions?
This is running on Raspian Buster, with Domoticz 2024.7