zonko
August 18, 2019, 4:57pm
1162
Did you set pic and pic2 with the same icon?
Else you can add an automation in HA:
- alias: trigger icon
trigger:
- platform: state
entity_id: your_light_component
action:
- service: mqtt.publish
data:
topic: 'hasp/plate02/p[2].b[5].picc'
data: 0
This way it will trigger the icon everytime you hit the button.
dziugasp
(Ethologus)
August 18, 2019, 6:18pm
1163
It worked! Thanks a lot, mate!
mr_ajwad
(Ajwad Ibrahim)
August 20, 2019, 8:53am
1164
did you use page 6 and convert it to functional button? can you share on how to do this ? which file do i have to edit to make a text available on button at page 6 ?
mr_ajwad
(Ajwad Ibrahim)
August 20, 2019, 9:00am
1165
anyone can help to suggest me on how to add text on page 6 button ?
i only see plate01_p6_ColorConfig page 6 dont have any toggle button line page 3?
LakeCruiser
(Ronny Rigsby)
August 20, 2019, 2:43pm
1166
I cant help you right now. After the .97 update, my Hassio has crashed big time.
Will check back when I get it going again.
luma
August 20, 2019, 3:17pm
1167
If you take a look at page 6 you can see that the main page is split into 8 buttons, starting with b4 and ending at b11.
If you look at the automations for page 1 , you can see several examples of setting the font size , defining button text , and responding when a button is pressed .
You can copy these examples and change p[1]
to p[6]
to begin developing your own automations for page 6.
LakeCruiser
(Ronny Rigsby)
August 21, 2019, 7:28pm
1168
You have to edit the p6 toggles yaml file.
Hi, I have been testing HASP for a while and just wondering if it’s possible to implement a “wake on touch” type functionality?
Is this something better handled at the hardware level, or should I write an automation/node-red for it?
provenza
(Provenza)
August 24, 2019, 3:19pm
1170
is it possibile to mount in horizontal and not in vertical? Id like to replace normal horizontal plate. thx
mr_ajwad
(Ajwad Ibrahim)
August 26, 2019, 6:05am
1171
i dont see any p6 toggles yaml file
LakeCruiser
(Ronny Rigsby)
August 26, 2019, 2:43pm
1172
It should be in your config/plate01/packages folder if your hasp is using the default name.
myle
(StePhan McKillen (Other kiwi Here))
August 26, 2019, 2:52pm
1173
there are no P6 toggle yaml files
but the logic is the same as the other pages
- id: Plate01 6_5
alias: Plate01 6_5
initial_state: true
trigger:
- entity_id: light.office
platform: state
condition: []
action:
- data:
topic: hasp/plate01/command/p[6].b[5].bco
payload_template: "{%- if is_state('light.office', 'on') -%}\n 65504\n\
{%- else -%}\n 65535\n{%- endif -%}\n"
service: mqtt.publish
......
- service: mqtt.publish
data:
topic: 'hasp/plate01/command/p[6].b[5].font'
payload: '1'
- service: mqtt.publish
data:
topic: 'hasp/plate01/command/p[6].b[5].txt'
payload: '"Office"'
- service: mqtt.publish
......
just got to watch your text lenght and change the size to match.
- alias: hasp_plate01_p6_B5
initial_state: true
trigger:
platform: mqtt
topic: 'hasp/plate01/state/p[6].b[5]'
payload: 'ON'
action:
service: light.toggle
entity_id: light.office
LakeCruiser
(Ronny Rigsby)
August 26, 2019, 3:04pm
1174
On mine I have P6 color and P6 toggles yaml files! I’m just going by what I see in my packages
folder. Maybe something changed in an update, but that’s what I have and it works!
luma
August 26, 2019, 4:17pm
1175
I’m not sure what you mean by “normal horizontal plate”. Can you post a picture or a link to an example?
mr_ajwad
(Ajwad Ibrahim)
August 26, 2019, 6:03pm
1176
So this logic i need to put inside “hasp_plate01_p6_colorconfig.yaml” file? Or i can make a new file? And pun all new logic in that new file?
luma
August 26, 2019, 6:32pm
1177
You can create a new file, copy the logic from an existing file, and modify as needed. Refer to my post above for some ideas on how to approach that.
See my attached .hmi file. Below pictures of the final result.
HMI file
4 Likes
provenza
(Provenza)
August 28, 2019, 6:56am
1180
exactly what I’d like to do.
myle
(StePhan McKillen (Other kiwi Here))
August 28, 2019, 7:08am
1181
Well done thanks for sharing