boa noite
Estou com um problema e nao estou a conseguir resolver, ja pesquisei mas nao encontrei solução,
Estou a tentar fazer uma automatização onde coloco em uma input box: um valor e sempre que o mesmo é superado executa um triguer… O problema é que nao consigo colocar valores superiores a 20000.
As bitcoins estão a mais de 20 mil euros ( e queria que acende-se aqui uma luz sempre que isso acontece-se)
- id: '1603315448659'
alias: BTC warning UP
description: ''
trigger:
- platform: state
entity_id: sensor.exchange_rate_1_btc
condition:
- condition: numeric_state
entity_id: sensor.exchange_rate_1_btc
above: input_number.btc_valor_alvo
action:
- repeat:
count: '4'
sequence:
- service: switch.toggle
data: {}
entity_id: switch.sonoff_sala_luz_1
- wait_template: ' '
timeout: '0.3'
#aviso valor de bitcoin na TV
- service: notify.living_room_tv
data_template:
message: 'Atenção Bitcoin em ALTA: {{states.sensor.exchange_rate_1_btc.state}}€'
data:
icon: "/share/jorge.jpg"
- service: light.turn_on
entity_id: light.xiaomi_gateway_light
data:
brightness: '255'
color_name: 'red'
- delay: '00:00:10'
- service: light.turn_off
entity_id: light.xiaomi_gateway_light
mode: single
- id: '1603322511158'
alias: BTC warning LOW
description: ''
trigger:
- platform: state
entity_id: sensor.exchange_rate_1_btc
condition:
- condition: numeric_state
entity_id: sensor.exchange_rate_1_btc
below: input_number.btc_alvo_compra
action:
- repeat:
count: '4'
sequence:
- service: switch.toggle
data: {}
entity_id: switch.sonoff_sala_luz_2
- wait_template: ''
timeout: '0.5'
#aviso valor de bitcoin na TV
- service: notify.living_room_tv
data_template:
message: 'Atenção Bitcoin em BAIXA: {{states.sensor.exchange_rate_1_btc.state}}€'
data:
icon: "/share/jorge.jpg"
- service: light.turn_on
entity_id: light.xiaomi_gateway_light
data:
brightness: '255'
color_name: 'red'
- delay: '00:00:10'
- service: light.turn_off
entity_id: light.xiaomi_gateway_light
mode: single