Collection of widgets, scripts and rules for openHAB to integrate with Valetudo.
See the documentation on how to correctly add Valetudo to openHAB. Contributions that require setups different than the one described in the docs will not be accepted.
Stuff related to using Valetudo with Openhab
License: Apache License 2.0
Collection of widgets, scripts and rules for openHAB to integrate with Valetudo.
See the documentation on how to correctly add Valetudo to openHAB. Contributions that require setups different than the one described in the docs will not be accepted.
thx for all the work on this widget.
I have a small problem with the "Clean Room" button.
My "_Mapsegments" has this string inside
"{"1":"Badezimmer klein","2":"Büro","3":"Schlafzimmer Eltern","4":"Schlafzimmer Kinder","5":"Küche","6":"Badezimmer gross","7":"Wohnzimmer"}"
However it does not display each segment to choose it, it just shows two times "undefined"
Below my normal map a broken image appears which has an src: "error: 'atob' is not a function".
Otherwise the widget looks and works as it should.
Am I missing something? Did I misconfigure my widget?
Please indicate if I should provide any other detail!
I've the widget configured just with
config:
valetudo_url: http://192.168.178.55
map_url: http://192.168.178.31:3000/api/map/image
title: Dreame D9
item: DreameD9
My MapSegment Item DreameD9_Mapsegments has the value
{"1":"Bad","2":"Arbeitszimmer","3":"WC","4":"Küche","5":"Schlafzimmer","6":"Wohnzimmer/Flur","7":"Kinderzimmer"}
When I select "Arbeitszimmer" at "CLEAN ROOMS in the widget, the widget sets '2' to Item DreameD9_Cleansegments
But Valetudo only accepts an array of segment_ids
[2021-09-18T11:36:23.551Z] [ERROR] MQTT: Error while handling valetudo/robot/MapSegmentationCapability/clean/set {
payload: ' 2',
error: Error: Missing or empty segment_ids Array in payload
Hello everyone and congratulations for the good work.
I'm trying to integrate the control of my valetudo robot into openhab.
I created the new thing via homie and therefore I need to associate the items with the channels.
These are the channels identified by homie:
01 AttachmentStateAttribute#mop
02 AutoEmptyDockManualTriggerCapability#trigger
03 BasicControlCapability#operation
04 BatteryStateAttribute#level
05 BatteryStateAttribute#status
06 ConsumableMonitoringCapability#brush_2Dmain
07 ConsumableMonitoringCapability#brush_2Dmain_2Freset
08 ConsumableMonitoringCapability#brush_2Dside_5Fright
09 ConsumableMonitoringCapability#brush_2Dside_5Fright_2Freset
10 ConsumableMonitoringCapability#detergent_2Ddock
11 ConsumableMonitoringCapability#detergent_2Ddock_2Freset
12 ConsumableMonitoringCapability#filter_2Dmain
13 ConsumableMonitoringCapability#filter_2Dmain_2Freset
14 ConsumableMonitoringCapability#mop_2Dall
15 ConsumableMonitoringCapability#mop_2Dall_2Freset
16 ConsumableMonitoringCapability#sensor_2Dall
17 ConsumableMonitoringCapability#sensor_2Dall_2Freset
18 CurrentStatisticsCapability#area
19 CurrentStatisticsCapability#time
20 FanSpeedControlCapability#preset
21 GoToLocationCapability#go
22 LocateCapability#locate
23 MapData#map
24 MapData#map_2Ddata
25 MapData#segments
26 MapSegmentationCapability#clean
27 OperationModeControlCapability#preset
28 SpeakerVolumeControlCapability#value
29 StatusStateAttribute#error
30 StatusStateAttribute#error_5Fdescription
31 StatusStateAttribute#flag
32 StatusStateAttribute#status
33 TotalStatisticsCapability#area
34 TotalStatisticsCapability#count
35 TotalStatisticsCapability#time
36 WaterUsageControlCapability#preset
37 WifiConfigurationCapability#frequency
38 WifiConfigurationCapability#ips
39 WifiConfigurationCapability#signal
40 WifiConfigurationCapability#ssid
41 ZoneCleaningCapability#start
The guide (https://valetudo.cloud/pages/integrations/openhab-integration.html) at point 7 says: "Enable and configure the channels you want to import from the vacuum. You don't have to select all of them , and you don't need to add all the items you configure to your semantic model (to not add them to the model, set the "Semantic class" to "None"). The table below shows the recommended channels to enable and suggested parameters."
And this is the table:
A Dust bin
B Water tank
C Mop
D Fan speed
E Water grade
F Status
G Status detail
H Battery level
I Battery status
J Operation
K Clean segments
L Locate
M Map
N Map segments
I can't understand what are the correct associations beetwen channels and items. I believe I have identified the following associations:
20 - D
04 - H
05 - I
But the others?
Another problem is about the name to be given to the items in order to then use the widget. Looking at the widget code I understand that they must all begin with a prefix (to be indicated to the widget) and then the name must be something like this:
Prefix: "my_vac_prefix"
my_vac_prefix_Fanspeed
my_vac_prefix_Batterylevel
my_vac_prefix_Batterystatus
...
Could you help me?
(even some screenshots of a working configuration would be nice)
thank you very much
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.