Yesterday, 09:44
(Yesterday, 08:36)Daniel Wrote: Did you change the ID as mentioned in this post?
Yes I did.
Code:
$(function () {
Widget.thermostat-new = Widget.extend({
config: {
title: $.tr('thermostat-new.ctitle', 'Thermostat-NEW'),
fields: {
title: { datatype: 'string', title: $.tr('thermostat-new.title', 'Title123') },
},
objects: {
temperature: { datatype: 9, title: $.tr('thermostat-new.temperature', 'Current temperature') + ' *' },
setpoint: { datatype: 9, title: $.tr('thermostat-new.setpoint', 'Current setpoint temperature input') },
'setpoint-status': { datatype: 9, title: $.tr('thermostat-new.setpoint-status', 'Current setpoint temperature output') },
[...]
It imports just fine, but just does not show up when trying to add widget...