I’m hoping this is just something stupid I’ve missed, but I haven’t been able to find it yet.
I have started with OH3 and I’m trying to get a single ESP8266 device running Tasmota setup. Sounds simple enough, but I can’t for the life of me get the item states to appear in the UI on the item’s page or on the UI Pages.
I am using text files, but I also tried creating all things and items through the UI and got the same results.
System
- x64 Intel Desktop
- Docker image
openhab/openhab:3.0.0-snapshot
- Tried with build 2005 and 2006
Items
If I look in the Items
page I can see the state just fine
but if I open the item I can’t see the state
Pages
I get the same lack of state in the Pages UI as I see in the Item’s page
Widget YAML
- component: oh-label-card
config:
title: Viv Online
item: equipment_viv_lights_online
Rest
If I pull the item description from the REST API I get results that I would expect
Text file Item JSON
{
"link": "http://OH3HOST/rest/items/equipment_viv_lights_online",
"state": "ON",
"editable": false,
"type": "Switch",
"name": "equipment_viv_lights_online",
"label": "Viv MagicHome Online",
"tags": [
"Status"
],
"groupNames": [
"equipment_viv_lights"
]
}
Side note: I get additional stateDescription
information from an identical item created via the UI. Why don’t I get that from the text defined item? Neither of them have stateDescription
metadata, so where is that coming from? If it comes from the channel then shouldn’t both get it since they are linked to the same channel?
UI Created Item JSON
{
"link": "http://OH3HOST/rest/items/test",
"state": "ON",
"stateDescription": {
"pattern": "%s",
"readOnly": true,
"options": []
},
"editable": true,
"type": "Switch",
"name": "test",
"label": "test",
"category": "",
"tags": [
"Status"
],
"groupNames": [
"equipment_viv_lights"
]
}