Hi,
I’m trying to connect Home Assistant to Arduino over the USB, however I’m facing several issues. I have configured Arduino switch (lights), which works perfectly and control it over wifi. Next thing, which I wanted to configure is number input and send that particular number generated on input to arduino to set the temperature. For example send 28 as 28°C to arduino, which would execute function for heating up house on 28°C. My issue is that I can’t configure sending this number to firmata so arduino could work with the number… I can’t even see which process, which is happening. Can someone help me with configuration or at least me tutorial or working example?
Thank you <3
My actual config:
arduino:
port: /dev/ttyACM0
switch:
platform: arduino
pins:
13:
name: SvětélkoLEDProsímVNociNesvítitSpinkám:C
initial: true
7:
name: Humidity
3:
name: Room temperature
2:
name: Floor temperature
sensor:
platform: arduino
pins:
A2:
name: Analog humidity
A1:
name: Brightness
input_number:
brightness:
name: Brightness
initial: 254
min: 0
max: 254
step: 1
automation:
- alias: Adjust Brightness
trigger:
platform: state
entity_id: input_number.brightness
action:
- service: sensor.turn_off
# Note the use of 'data_template:' below rather than the normal 'data:' if you weren't using an input variable
data_template:
entity_id: switch.svetelkoledprosimvnocinesvititspinkamc
brightness: "{{ trigger.to_state.state | int }}"