I’m syncing the colour of my light with the colour of the deck LED using a script and automation, if you’d like me to share it?
LocalDeck - Quick Questions Megathread
Received mine this morning, and trying to play and have fun, but continued problems are impossible to resolve
Static IP set but still getting timeouts, seems to have settled after about 2 hours but they still continue
Install localdeck.yaml stuck on similar screen to SdcDev’s his is the logs, mince just sitting for the past 2 hours constantly sending state on/off, unable to go any further, I can stop it but that stops the install??
At present, the device looks way cooler than I thought, but useless if it isn’t working
Currently unimpressed compared to other LocalBytes devices, they work as described, this doesn’t
MichaelMKKelly How is shipping going?
It’s slower than I would have hoped…
Some issues during the initial run have caused us to spend a lot more time on each unit.
MichaelMKKelly I placed order last week and wondering when I should expect it to ship?
We aim to have everything delivered this month!
BazzUK At present, the device looks way cooler than I thought, but useless if it isn’t working
With you there!
We tested each unit before packing to ensure it was working, but a weak joint could still break during shipping.
At the moment, are you connected to home-assistant?
You should have a ledstrip
entity, which will control the strip as a whole; please turn that on and let me know what you see!
BazzUK Currently unimpressed compared to other LocalBytes devices, they work as described, this doesn’t
I hear you!
This is our first time releasing a fully custom device; we’ve already learned a lot from the process!
I look forward to working with you to determine what’s gone wrong to have a more seamless process on future devices.
Hey finalbilylbong
Just a heads up, we’ll be shipping sync-colour this month!
I’ve got it working in testing, so will push it out soon when I’m confident it’s working well
SdcDev
The log spam is due to a workaround we had to do for a bug in ESPHome.
In short, if we don’t setup a binary_sensor, the keypad doesn’t respond reliably.
That said, I’ve done more testing this evening, and we can remove some of it to make the logs less annoying.
Once this batch is out, we’ll be seeing if we can fix the source of the bug altogether.
TLDR: The slew of logs is not bad; it’s expected at this stage and should not stop the device from functioning!
RE the top row, please can you see my reply here: AAllport
Just a heads up, we will close this thread at the end of the month!
That said, we’ll monitor our support channels for any issues that may crop up so we can actively work to resolve them, etc.
Please, can anyone who runs into any new issues create a new thread and tag it withLocalDeck andQuestions?
The main reason behind this is that managing multiple questions that require multiple follow-ups will be difficult and make it easier for things to get lost!
Its is connected, pressing buttons results in state on, but no LED’s
Cannot control them at all, even in Localdeck web page
Its either faulty, or install process in wrong (I tried to follow your process in the video but doesn’t overall make sense as you do not show the entire process)
I’ll give this another go tomorrow, if not working by then, I’ll need to raise a return as not fit for purpose
- Edited
BazzUK Cannot control them at all, even in the Localdeck web page
Yeah, it sounds like a joint has broken during shipping!
If you can send us an email (help@mylocalbytes.com), we’ll send out a new one and let you know where to send the old one.
Thanks for bearing with us!
BazzUK (I tried to follow your process in the video but doesn’t overall make sense as you do not show the entire process
We felt the guides we published regarding the initial setup were complete.
Please do let me know what you feel was missing, and we’ll look into updating them in due course!
finalbilylbong yes please!
AAllport Thanks. My question was more about setting different colours for different rooms. None of my lights are colour, just white Hue, but I wanted to set the “on” status as the colour of my choosing. If I set it through HA ESP then I can make them change colour, but then when I press them they go back to white.
Ahh bushbrother
That’s not currently a supported use-case at the moment.
We may do something like that in the future, but I can’t put a timeframe on it!
The best bet for now would be turning off “Follow State” and adding an automation in HomeAssistant
AAllport Thanks! I will look into that, any pointers on how to structure that Automation? Thanks for the feedback
bushbrother
probably a few ways of doing it but this would be an example
trigger on device switch changing state
if switch state on then
set light on with colour setting
else if switch state off then
set light off
endif
- Edited
bushbrother The update with colour sync has been pushed now but just incase you still want to automate this, I’m using two scripts. One to sync the on/off state and another to sync the colour and brightness.
On/off script:
alias: Sync Light State to Local Deck
description: Sync the on/off state of the source light with the target light.
mode: single
fields:
source_light:
description: The light entity to sync from.
example: light.bedroom
target_light:
description: The light entity to sync to.
example: light.localdeck_button_13_light
sequence:
- service: light.turn_{{ states(source_light) }}
target:
entity_id: "{{ target_light }}"
Example Automation:
alias: Sync Bathroom Light to Deck Light
description: Sync the on/off state of light.bedroom with light.localdeck_button_13_light.
trigger:
- platform: state
entity_id:
- light.bathroom_light
- platform: state
entity_id:
- binary_sensor.192_168_0_247
to: "on"
for:
hours: 0
minutes: 0
seconds: 20
condition: []
action:
- service: script.sync_light_state_to_local_deck
data:
source_light: light.bathroom_light
target_light: light.localdeck_button_16_light
mode: single
The ping sensor here is to sync the state of the lights on power on of the deck
Colour state script:
alias: Sync Light and LocalDeck Light Attributes
mode: queued
sequence:
- variables:
entity_id: "{{ entity_id }}"
brightness: "{{ brightness }}"
color_temp: "{{ color_temp }}"
rgb_color: "{{ rgb_color }}"
hs_color: "{{ hs_color }}"
xy_color: "{{ xy_color }}"
- choose:
- conditions:
- condition: template
value_template: "{{ brightness is not none }}"
sequence:
- service: light.turn_on
target:
entity_id: "{{ entity_id }}"
data:
brightness: "{{ brightness }}"
- choose:
- conditions:
- condition: template
value_template: "{{ color_temp is not none }}"
sequence:
- service: light.turn_on
target:
entity_id: "{{ entity_id }}"
data:
color_temp: "{{ color_temp }}"
- conditions:
- condition: template
value_template: "{{ rgb_color is not none }}"
sequence:
- service: light.turn_on
target:
entity_id: "{{ entity_id }}"
data:
rgb_color: "{{ rgb_color }}"
- conditions:
- condition: template
value_template: "{{ hs_color is not none }}"
sequence:
- service: light.turn_on
target:
entity_id: "{{ entity_id }}"
data:
hs_color: "{{ hs_color }}"
- conditions:
- condition: template
value_template: "{{ xy_color is not none }}"
sequence:
- service: light.turn_on
target:
entity_id: "{{ entity_id }}"
data:
xy_color: "{{ xy_color }}"
Example Automation:
alias: Sync Bedroom and Deck Lights - Attributes
description: >-
Sync the brightness and color of light.bedroom_hue with
light.localdeck_button_07_light.
trigger:
- platform: state
entity_id: light.bedroom_hue
- platform: state
entity_id:
- binary_sensor.192_168_0_247
to: "on"
for:
hours: 0
minutes: 0
seconds: 20
condition:
- condition: state
entity_id: light.bedroom_hue
state: "on"
action:
- service: script.sync_bedroom_and_deck_light_attributes
data:
entity_id: light.localdeck_button_07_light
brightness: "{{ state_attr('light.bedroom_hue', 'brightness') }}"
color_temp: "{{ state_attr('light.bedroom_hue', 'color_temp') }}"
rgb_color: "{{ state_attr('light.bedroom_hue', 'rgb_color') }}"
hs_color: "{{ state_attr('light.bedroom_hue', 'hs_color') }}"
xy_color: "{{ state_attr('light.bedroom_hue', 'xy_color') }}"
- Edited
Is anyone else getting a green flash out of some of the LED’s?
Example: Pressing button 13 makes button 7 flash green. Same result doing this with the switch for the LED in Home Assistant.
Other flash green too, depending on what button is pressed.
finalbilylbong Is anyone else getting a green flash out of some of the LED’s?
yes