I have an AC Wall Unit I’m controlling with harmony hub. I’ve tried generic thermostat and harmony-hub controlled thermostat integrations and neither will work because I don’t have any functional temperature sensor right now. So I made my own way to control it using scripts and automations. I’ve got a mostly functional way to control most of the unit, except the temperature. In the UI, I have button cards that call scripts, with an automation to change the input slider number up or down. It works, except for some reason it changes the number twice on the slider when the script only executes once. Anyone have any ideas why or how to fix?
Here’s my input number for the slider:
living_room_ac_target_temp:
name: Living Room AC Target Temp
initial: 75
min: 72
max: 78
step: 1
mode: slider
Here’s what I have for scripts to make it hotter and colder
'1592965959355':
alias: AC Colder
sequence:
- data:
command:
- TempCooler
device: 70164481
entity_id: remote.living_room
service: remote.send_command
'1592965982205':
alias: AC Hotter
sequence:
- data:
command:
- TempHotter
device: 70164481
entity_id: remote.living_room
service: remote.send_command
Here’s the automation for changing the slider
# Move Slider Down When Turning AC Hotter#
- id: lr_ac_temp_hotter_move_slider
alias: LR AC Hotter Slider Move
trigger:
platform: state
entity_id: script.1592965982205
condition:
condition: state
entity_id: input_boolean.ac_power
state: 'on'
action:
service: input_number.increment
data:
entity_id: input_number.living_room_ac_target_temp
#Changing AC Slider for Colder When Script Called#
- id: lr_ac_temp_colder_move_slider
alias: LR AC Colder Slider Move
trigger:
platform: state
entity_id: script.1592965959355
condition:
condition: state
entity_id: input_boolean.ac_power
state: 'on'
action:
service: input_number.decrement
data:
entity_id: input_number.living_room_ac_target_temp
Here’s a picture of my UI Card for the AC control. The + and - buttons call the script to make it hotter and colder. That temperature changes twice when they’re pressed though.
cards:
- entities:
- entity: input_boolean.ac_power
- entity: input_select.living_room_thermostat_fan_mode
show_header_toggle: false
type: entities
- cards:
- entity: input_number.living_room_ac_target_temp
icon: 'mdi:temperature-fahrenheit'
name: Temp
type: entity
- entity: script.1592965959355
hold_action:
action: more-info
icon: 'mdi:minus-box'
icon_height: 100px
show_icon: true
show_name: false
tap_action:
action: toggle
type: button
- entity: script.1592965982205
hold_action:
action: more-info
icon: 'mdi:plus-box'
show_icon: true
show_name: false
tap_action:
action: toggle
type: button
type: horizontal-stack
title: Living Room AC
type: vertical-stack
Any help would be appreciated! Sorry if I didn’t do something right, this is my first post. I’ve searched the HA forums for this topic and ended up just continually getting more confused, and didn’t find anything that worked.