joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
856 stars 187 forks source link

[BUG] Dimmer Switch not working on cardEntities #1160

Closed Bart1909 closed 4 months ago

Bart1909 commented 5 months ago

PROBLEM DESCRIPTION

I've created an alias device from type "Dimmer" and assigned the states: grafik

Now, when I enter this device on a cardEntities page, the toggle switch is not working. If the light is on, the switch represents this. Then I touch the switch and the light goes off. But then, the switch steps back to activated and I cannot control the light anymore. If I click on the light name to enter the details page, the switch there is working as expected. Also the slider for the brightness is working fine. In addition, when the light is off, the switch on the page is also activated.

REQUESTED INFORMATION

let startSeite: PageType =
    {
        'type': 'cardEntities',
        'heading': '',
        'useColor': true,
        'items': [
            { id: 'alias.0.NSPanel.Devices.Rollladen.BueroTobi', icon: "window-shutter", name: "Fenster", interpolateColor: true},
            { id: 'alias.0.NSPanel.Devices.Rollladen.BueroTobiBodentief', icon: "window-shutter", name: "Tür", interpolateColor: true},
            { id: 'alias.0.NSPanel.Devices.Lichter.BüroTobi', icon: 'lightbulb', name: 'Lampe', interpolateColor: true},
            { navigate: true, id: 'Buero_Themostat', icon: 'thermostat', name: 'Thermostat', buttonText: 'Einstellen'},
        ]
    };

TO REPRODUCE

Create the alias device and put it on a cardEntities page. Then try to control it with the switch.

EXPECTED BEHAVIOUR

The switch on the cardEntities page should work and represent the current state of the light.

ADDITIONAL CONTEXT

Working with ioBroker.

PANEL / FIRMWARE VERION

NSPanel EU Script Version: v4.3.3.39 Tasmota Version: 13.3.0 TFT-Version: 4.3.3

tt-tom17 commented 5 months ago

Hallo, hattest du vorher ein anderes Alias / Gerät mit diesen Datenpunkten angelegt? Könntest du bitte den Alias / Gerät noch einmal löschen und neu anlegen. Welche Version vom Device-Adapter nutzt du?

Bart1909 commented 4 months ago

Das hat tatsächlich funktioniert.

vielleicht hatte ich beim ersten Mal was falsch gemacht, war das erste Gerät, was ich eingebunden hatte