hi,
have a look at this thread, its all there, @jimz011 is using that card:
Thanks, I still donât fully understand the approach when using external maps and Ive noticed Jim is quite thorough with his guidance.
yeah, i also had an external floorplan loaded,
i opened photoshop and looked at the the pixels
so for instance , 200 x 300
my vacuum was for example located at 150 x 150
from there i created the reference, and just looked if the zones defines was actually on the place, and played a bit with moving pixels, untill my zones were correctly over the correct room
Thanks for the compliment, however it took me a long time to do this. I created a map within paint. I took a screenshot with the Mi Home app and drew over that image. Then send your vacuum to the coordinates as described in the docs (you can do a service-call for that, please read their docs on which commands you should give). Find the robot in Flolevac and look where the robot has stopped. Now go into paint, to the map you made earlier. Look at where the robot is standing on your Flolevac image and estimate that same spot on your own map (mouse over and it will show you the x and y in pixels in the status bar of paint). There you have gotten your first coordinates. Do this with the reference point as well and you should be done.
If you canât get the service to run do it as follows:
Note that you might have to rotate the map once or twice to get the right orientation. If you set this up and test it and you find your robot going into the opposite direction you will need to rotate the map 90/180 degrees and try again. Unfortunately the x/y axis of the device is not fixed and you will have to do this with trial and error.
I hope this is thorough enough XD
Hi all, a few small updates today, it might take you a while to do this though, but I challenge you. It took me about half an hour to do most of the changes. This update is probably another puzzling one as many things have been renamed. Why all this renaming you ask? Well when I first started uploading my setup to github I was already pretty far in with HA. I never actually thought of sharing it until people asked me to. I have since uploaded my setup to github and as expected I get a lot of questions. Most questions are actually very legit, but really dumb of myself because if I had chosen logical names it would be much easier and all of these questions would have probably been avoided, but because I was busy creating new stuff instead of beautifying old stuff I never bothered to change it. Slowly I will declutter the mess I made of many names, paths, unused automations etc. The upcoming updates will all have some renames and template changes to make the setup not only easier to use and understand for new users, but also for existing users and obviously myself. I sometimes get lost in the names and this way finding the right file will be a lot easier. In the next few updates I will clean out automations and make them smaller where possible. I will also clean out the secrets.yaml file, which I get too much questions about XD. I will take it step by step as I donât want to rebuild the entire config in a single go. This way you can shift to the new and more readable way of configuring at a slower pace. I am very sorry for the inconvenience, but hey, what would HA be without a little challenge ey?
v. 0.12.2
The discord link should be fixed!
Hi, very nice guide! In my case I have used zoned cleanup (like in docs), then took a screenshot and saved required points, at the end edited out everything unnecessary
Thanks Jim, appreciate the response. I did manage to get this going last night, not overly difficult but a little tedious. It seems to be quite accurate though which is good. My issue now though, is that I have a loooong home floorplan and it becomes tiny in the card. Iâll setup zones and be done with it though, set and forget!
And a special for all of you, the text editor I use for Home Assistant!
Edit: I s*ck at this, but you get the point eh XD
Truly inspirational @jimz011 - your config and design are amazing. Will definitely follow you on YouTube. Thanks for sharing your hard work!
Hi, I stumbled upon this thread about a week ago and have been following since. Most of the recent posts seem to describe how to migrate. Any tips for someone who is starting fresh with this.
when starting fresh, just ignore all the migrations and updates, just download latest version and start changing enities
Sorry for my absence the last few days, I have been busy rearranging my servers (which unfortunately always take more time than I had anticipated)
Easiest way to install this:
Good luck!
Hi all, I have been absent lately as I had a lot of server issues which needed to be addressed first. But now I am back and to stop keeping you waiting I will release this version today. It only contains small updates and thus 0.13.x will come either next week or within 2 weeks. Enjoy! In this release I have changed a lot for my personal situation as I have switched to Hass.io AND I have ditched my Tradfri hub for a Conbee2 with deCONZ. This means (for all file comparers out there) that many files have changed though they are only entities. And I am pretty sure you donât have the same entities so you wont need to change all of that. All changes are mentioned below as usual.
v. 0.12.3
For video instructions you can check the video below, keep in mind that this will only cover large changes.
Hello everyone, just a little update as I have been absent a bit last week. Unfortunately I had caught a massive cold. But it is clearing up so I am ready to get back into the game.
And ofcourse I will not leave you guys wondering what is going to come in the next update so here are some previews of 0.13.x.
The frontpage now has a new type of button which shows the lights/devices/sensors/heaters that are currently activated.
And pressing on any of those buttons will just take you to the page it already did! However now if you do a hold_action (or deep_press for iphones) you can see exactly what is âonâ.
There is an Air Quality card in the weather page now.
There is a beautiful new printer popup card for the printer.
There is a live map available for Xiaomi Vacuums (you will need to root your device for this and install Valetudo, which is btw SUPER easy).
The templates have changed so that dynamic buttons are possible.
And there is much much more in this release. It fixes a lot of things, makes things a lot more compact and easier to read for a human and it packs a lot of new features and it aims to make templates more understandable as well as fixing css on some areas (I still canât promise css to be perfect in the upcoming release. Anyways there is too much to go into detail right now, but just so you know I havenât forgotten all of you XD.
I expect this release to be released next week probably mid/end as the documentation for this release will be huge . Anyways I am looking forward to share my current production setup and I hope you will enjoy it as well.
HI,
Since you now use these counters, I wonder if youâre experiencing any issues in performance. Ive had some of these, still in the form of a monstercard or auto-entities, counting the lights being âonâ.
It took my HA instance down. Granted I have many lights, ( I filtered the light groups which also are of domain light. ) but keeping up with these takes its heavy toll.
I use Hue and Tradfri lights, and Hue integration suffers from heavy traffic, causing the lights to become unavailable for the HA instance constantly (different/related issue, the community and github is full of issues on thisâŚ). This in itself causes the monster and auto entities card to update, causing a vicious circle I am afraidâŚ
Ive also tried this card (I think @iantrich created elsewhere):
var count = activeCount(entity.attributes.entity_id, 'open', '=') + activeCount(entity.attributes.entity_id, 'on', '=') + activeCount(entity.attributes.entity_id, 'playing', '=') + activeCount(entity.attributes.entity_id, 40, '<') + activeCount(entity.attributes.entity_id, 'problem', '=');
if (count > 0)
return "var(--accent-color)";
return "";
]]]
notification_count_field: ¬ification_count_field
notification: >
[[[
function activeCount(entities, active, operator) {
var count = 0;
for ( var entity in entities ) {
if ( states[entities[entity]] ) {
switch (operator) {
case ">":
count += states[entities[entity]].state > active;
case "<":
count += states[entities[entity]].state < active;
break;
default:
count += states[entities[entity]].state === active;
break;
}
}
}
Same implicationsâŚ
Long story short: has your performance been compromised in any way using these lights counters?
Absolutely no performance drops. Though I use a completely different code than Ianâs code. Mine perhaps look a bit messy compared to his code. But it works and it works well.
this great to hear!
just out of curiosity, how many lights do you have, and do you use Hue lights?
I have quite a few, and only the Hue lights are losing connection , which in itself causes these counters to change constantlyâŚ
I do not have hue lights, I only have Ikea and lights that run tasmota. To my knowledge hue lightbulbs should in theory be superior to Ikea lightbulbs. If I may do a suggestion, I bought a ConbeeII from Dresden Elektronik better known as deCONZ. I had all of these disconnection issues with Ikea as well. Since I use this stick as a hub all my problems are gone. It all works perfectly now and the speed of which they react seems a lot better. This is ofc just my personal opinion but for me it has been a great experience.
Anyways do not expect my code to be as complex and sophisticated as @iantrichâs code. I will post the code to my repo very soon.