Open holzwurm83 opened 3 months ago
And how would you like to integrate it ? I have home assistent here on a raspi somewhere ...
I think the questions would be:
Cheers
Hi
I think the best way is a connection bei RS485. I bought this modul https://www.amazon.de/dp/B0CPHX4764?ref=ppx_yo2ov_dt_b_fed_asin_title
I have done a small base with a few function, but it is only very easy.
`light:
# {{ ['Rainbow', 'Color Loop', 'Flash', 'Fade', 'Strobe'] | join(',') }}
#effect_template: "{{ states('input_select.pool_light_effect') }}"
turn_on:
- action: script.g_licht_pool_skript_on
turn_off:
- action: script.g_licht_pool_skript_of
set_level:
- action: input_number.set_value
data:
value: "{{ brightness }}"
target:
entity_id: input_number.helfer_poolbeleuchtung_bright
# - delay: "00:00:00.020" # 20 ms Delay
- action: script.g_licht_pool_skript_level
set_rgb:
- action: input_number.set_value
data:
value: "{{ r }}"
target:
entity_id: input_number.poolbeleuchtung_r_input
- action: input_number.set_value
data:
value: "{{ g }}"
target:
entity_id: input_number.poolbeleuchtung_g_input
- action: input_number.set_value
data:
value: "{{ b }}"
target:
entity_id: input_number.poolbeleuchtung_b_input
# - delay: "00:00:00.020" # 20 ms Delay
- action: script.g_licht_pool_skript_rgb
#set_effect:
# - action: shell_command.set_pool_light_effect
# data:
# effect: "{{ effect }}"
shell_command: g_pool_light_on: "echo -n 'PL1' | nc 192.168.1.32 8899" g_pool_light_off: "echo -n 'PL0' | nc 192.168.1.32 8899" g_pool_light_next_program: "echo -n 'PsU' | nc 192.168.1.32 8899" g_pool_light_vorheriges_program: "echo -n 'PsD' | nc 192.168.1.32 8899" g_pool_light_weis1: "echo -n 'PW1' | nc 192.168.1.32 8899" g_pool_light_weis2: "echo -n 'PW2' | nc 192.168.1.32 8899" g_pool_light_weis3: "echo -n 'PW3' | nc 192.168.1.32 8899" g_pool_light_sync: "echo -n 'PsS' | nc 192.168.1.32 8899" g_pool_light_level: "/bin/bash /config/send_rgb_command.sh 'PD{{ '%03d' | format((100 / 255 * states('input_number.helfer_poolbeleuchtung_bright') | float) | int) }}'" g_pool_light_rgb: "/bin/bash /config/send_rgb_command.sh 'PC{{ '%03d' | format(states('input_number.poolbeleuchtung_r_input') | int(0)) }}{{ '%03d' | format(states('input_number.poolbeleuchtung_g_input') | int(0)) }}{{ '%03d' | format(states('input_number.poolbeleuchtung_b_input') | int(0)) }}'"`
I have the problem to sync the light and I can't integrate the programs by "effect" I used https://www.home-assistant.io/integrations/light.template/
Maybe there are a better way?
For syncronizing I found that you need to send multiple commands:
PRM0 (relay off)
PRM1 (relay on)
PL1 (lights on)
PsS (syncronize)
If you can try that? Then normally the lights should come alive ...
Hi
Can you help me to integrate it to home assistant?
THX
Waldemar