So, right now I’m questioning my sanity.
I want to create a simple button, that toggles an Item.
By now, i have direktly copied the example from the documentation and just replaced the Itemname with the Name of my TestItem:
uid: oh-button-action-toggle
tags: []
props:
parameters:
- context: item
description: Select the item to use with these buttons.
label: Item
name: item
required: true
type: TEXT
groupName: general
parameterGroups:
- name: general
label: Display options
timestamp: Mar 6, 2022, 12:47:11 PM
component: f7-card
config:
title: "oh-button > action: toggle"
footer: Set the properties to any item that accepts an ON/OFF commands
slots:
default:
- component: f7-block
config:
class: bog
style:
display: flex
flex-wrap: wrap
justify-content: space-between
align-content: space-between
padding: 20px
slots:
default:
- component: oh-button
config:
text: Off
outline: true
action: toggle
actionItem: =TestItem.item
actionCommand: ON
actionCommandAlt: OFF
style:
width: 100px
This should (in theory) toggle the following Item:
I already doublechecked that it exists and is listed in the Items-section of the UI.
And yet, when I click on the Button, i only get the following Message:
in written Form:
[WARN ] [e.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: TypeError: n is undefined
Already rebooted the Raspi and tried with different items, Itemnames and whatnot…
I can already guess, that it’s something obvious I’m not seeing here,but…well…I’m not seeing it…
So thanks in advance to everyone who can help me stay sane with this.