In my “floorplan.yaml” I have defined the entities:
- name: Binary sensors
entities:
- binary_sensor.living_eye_sensor
- binary_sensor.bedroom_eye_sensor
- binary_sensor.kitchen_eye_sensor
- binary_sensor.bathroom_eye_sensor
- binary_sensor.hallway_eye_sensor
states:
- state: 'off'
class: 'motion-off'
- state: 'on'
class: 'motion-on'
state_transitions:
- name: On to off
from_state: 'on'
to_state: 'off'
duration: 2
- name: Off to on
from_state: 'off'
to_state: 'on'
duration: 1
… observe the “state_transition” part !, that’s what you’re looking for when you desire the fade effect. By writing different values in the “duration” fields, you can fade entities faster or slower.
… off topic:
I’ve added some “pendants” on the right, just to give me a rapid/quick overview as how many lights / motion areas / wall plugs are ON. Instead of searching through the house, looking for small things, I now have a quick way of seeing how many of each are ON. If someone is interested in the syntax of those sensors, i’ll share it here. Also, when you press on the corresponding “pendant” ALL those entities go OFF … for ON, you have to toggle them individually.
Thanks man, coming from one of our best, it means a lot to me …
I just finished the AC Unit Modes, have a peek
The small white grill like bars become orange as each of them is a template sensor which becomes “True” as the power drawn rises over its threshold >10W, >50W, >100W, >300W … >700W … etc. (the Power is reported by a Fibaro Wall Plug).
Fan speed is only presumed at first, as it is an IR command sent by a Broadlink Universal Remote, but usually it reaches the unit without problems.
Not really a “floorplan”, but the start of a simple remote to be used on a kiosk mode iPhone using floorplan for hass. Icons grabbed off the noun project website.
Have it running on a new fire tablet with Fully Kiosk.
Still on the list is to change the “home button” change the layout of the buttons/scripts on the right hand side, and get the tablet mounted on the wall.
In my floorplan.svg I have a separate layer with the ID tv_select_layer that houses the “pop out” buttons. I also have the tv button on the bottom left in the main layer with the ID of tv_select_button.
In my floorplan.yaml I have the following code:
#### ELEMENTS ####
- name: TV Selection
elements:
- tv_select_button
action:
domain: class
service: toggle
data:
elements:
- tv_select_layer
classes:
- layer-visible
- layer-hidden
default_class: layer-hidden
Still lots of tweaking to do, but the basic concept is solid.
** EDIT: I forgot to add. If any knows how to get rid of or use that white space at the bottom, please let me know. It’s the space where the header “would” be, but I have it hidden.
Is your floor plan the size of your phone screen? My plan fills up the Kindle Fire I’m using it on completely but I’ve explicitly set the size of the canvas area = resolution of Kindle Fire…
Yes, it is. If I try to make it any taller, it starts to scale and the side margins are no longer correct. I know that space is where the header “would” be if I was showing it, but safari must do something weird with the way it’s being hidden.
Can anyone give me pointers on adding 90 degree door rotations ?
So far I’ve successfully been able to change the color of the door with my sensor action, have tired a few ideas i pulled from some posts but didn’t have much luck
EDIT: OK I got the animation working but its anchor point is off the screen, im guessing the #domain is my problem can you shed some light one what the placeholder should be referring to ?
thanks
It’s probably redundant, but it didn’t hurt anything to have it twice. I don’t remember having a fitting problem, but it could be your SVG. I made sure my SVG dimensions matched the resolution of my Pi screen.
Just an FYI, if you setup your Raspberry Pi like I did, this will not work. I didn’t install lightdm or any window manager. I am only using straight x server. I didn’t want to waste resources on window/desktop manager system I wouldn’t ever use since I am always running HA in kiosk mode.
This did however help me find the right direction to remove the cursor though, so very helpful. I updated my X server script to have the nocursor option, which did in fact remove it.