Comments (17)
I'll have a look
from core.
Thanks for your help. Will open an issue in zwave-js and ask them to look at it. Will add this issue as a link.
Thanks for great help.
from core.
Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this issue as it has been labeled with an integration (mqtt
) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of mqtt
can trigger bot actions by commenting:
@home-assistant close
Closes the issue.@home-assistant rename Awesome new title
Renames the issue.@home-assistant reopen
Reopen the issue.@home-assistant unassign mqtt
Removes the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-information
Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-information
Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
mqtt documentation
mqtt source
(message by IssueLinks)
from core.
Seems Zwave2Mqtt is generating the configuration and state. I am not sure this is supported. Can you share the MQTT config payload for the cover that is missing the controls, and may be a state payload matching the state_topic
in the config?
from core.
@jbouwh I need some guidance on how to to find the config payload. This is the first time I'm using the mqtt explorer.
Is it there I can find the payload?
from core.
Some where under homeassistant/cover/xxxx/config
from core.
homeassistant/cover/Kjokkenvinduet_screen/position
{
"command_topic": null,
"position_topic": "zwave2mqtt/Kjokkenvinduet_screen/38/0/currentValue",
"set_position_topic": null,
"position_template": "{{ value_json.value | round(0) }}",
"position_open": 99,
"position_closed": 0,
"payload_open": 99,
"payload_close": 0,
"availability": [
{
"payload_available": "true",
"payload_not_available": "false",
"topic": "zwave2mqtt/Kjokkenvinduet_screen/status",
"value_template": "{{'true' if value_json.value else 'false'}}"
},
{
"topic": "zwave2mqtt/_CLIENTS/ZWAVE_GATEWAY-zwave-js-ui/status",
"value_template": "{{'online' if value_json.value else 'offline'}}"
},
{
"payload_available": "true",
"payload_not_available": "false",
"topic": "zwave2mqtt/driver/status"
}
],
"availability_mode": "all",
"device": {
"identifiers": [
"zwavejs2mqtt_0xc7f1fc00_node115"
],
"manufacturer": "Fibargroup",
"model": "Roller Shutter 4 (FGR-224)",
"name": "Kjokkenvinduet screen",
"sw_version": "8.0.0"
},
"name": "Kjokkenvinduet screen_position",
"unique_id": "zwavejs2mqtt_0xc7f1fc00_115-38-0-currentValue"
}
from core.
What is the payload on topic zwave2mqtt/Kjokkenvinduet_screen/38/0/currentValue
?
from core.
{
"id": "115-38-0-currentValue",
"nodeId": 115,
"toUpdate": false,
"commandClass": 38,
"commandClassName": "Multilevel Switch",
"endpoint": 0,
"property": "currentValue",
"propertyName": "currentValue",
"type": "number",
"readable": true,
"writeable": false,
"label": "Current value",
"stateless": false,
"commandClassVersion": 0,
"min": 0,
"max": 99,
"list": false,
"value": 0,
"isCurrentValue": true,
"lastUpdate": 1717088602377
}
from core.
Can you share the content of topic zwave2mqtt/Kjokkenvinduet_screen/status
?
from core.
from core.
Okay, it may be that topic is not retained, so it is only shown when it is published. That should happen when the item comes available.
from core.
from core.
I see this in the logs:
2024-05-30 18:33:09.397 ERROR (MainThread) [homeassistant.components.mqtt.mixins] Error 'string value is None for dictionary value @ data['command_topic']' when processing MQTT discovery message topic: 'homeassistant/cover/Kjokkenvinduet_screen/position/config', message: '{'command_topic': None, 'position_topic': 'zwave2mqtt/Kjokkenvinduet_screen/38/0/currentValue', 'set_position_topic': None, 'position_template': '{{ value_json.value | round(0) }}', 'position_open': 99, 'position_closed': 0, 'payload_open': 99, 'payload_close': 0, 'availability': [{'payload_available': 'true', 'payload_not_available': 'false', 'topic': 'zwave2mqtt/Kjokkenvinduet_screen/status', 'value_template': "{{'true' if value_json.value else 'false'}}"}, {'topic': 'zwave2mqtt/_CLIENTS/ZWAVE_GATEWAY-zwave-js-ui/status', 'value_template': "{{'online' if value_json.value else 'offline'}}"}, {'payload_available': 'true', 'payload_not_available': 'false', 'topic': 'zwave2mqtt/driver/status'}], 'availability_mode': 'all', 'device': {'identifiers': ['zwavejs2mqtt_0xc7f1fc00_node115'], 'manufacturer': 'Fibargroup', 'model': 'Roller Shutter 4 (FGR-224)', 'sw_version': '8.0.0', 'name': 'Kjokkenvinduet screen'}, 'unique_id': 'zwavejs2mqtt_0xc7f1fc00_115-38-0-currentValue', 'name': 'Kjokkenvinduet screen_position'}'
The command_topic
cannot be None
.
from core.
Where does the error lay? Is it the zwave-js or zwave-js ui that needs to do something?
from core.
Is it the zwave-js or zwave-js ui that needs to do something?
Yes, the config invalid. As the command_topic
should be string. It is optional, but then it should be omitted. This also means that it is not an issue with Home Assistant or the MQTT integration.
from core.
I'll close the issue here, but is okay to link to it.
from core.
Related Issues (20)
- Axis P5512-E reports lot of warnings for unsupported topic/events HOT 3
- The Velux integration does not reflect the correct position of the covers - No integration Errors Reported
- Black screen at the end of integration HOT 6
- device tracker - mobile_app does not generate unique IDs... ignoring device_tracker_iphone, and others HOT 4
- IQVIA integration errors HOT 7
- Bluetooth dongle not detected by Bluetooth integration HOT 2
- 503 Error from Meteorologisk institutt (Met.no) integration HOT 3
- Roborock integration: euiot.roborock.com:443 Name has no usable address HOT 1
- Reolink integration issue after 2024.7.x upgrade HOT 7
- Hounter Douglas Luxaflex Bottom-Up/Top-Down shades cannot update in parallel HOT 3
- Roller shutters show incorrect status since version 2024.7.2
- Airzone Cloud install HOT 6
- MQTT statestream filter HOT 1
- Pandora integration has blocking call to sleep inside the event loop HOT 1
- Python 3.12.4 and SWITCHBOT HOT 5
- Iqvia Internal Server Error Giving up _async_request(...) after 1 tries HOT 3
- Z-Wave JS Firmware Update Causes Duplicate Entity IDs
- Device Config Creep HOT 1
- Google Generative AI Doesn't work with custom_sentences HOT 2
- KNX expose of lock status does not trigger on state change HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.