#Help roasted with code
1 messages ยท Page 1 of 1 (latest)
@bright badger I popped over here to keep code out of the main channel, the BOT doesn't like that.
ah no worries ๐
This is what you need to change in the bleprint:
target_temperature:
name: Target temperature
description: Target temperature of the thermostat
selector:
number:
min: 5
max: 30
step: 0.5
unit_of_measurement: "ยฐC"
default: 21
target_temperature:
name: Target temperature
description: Target temperature of the thermostat
entity:
domain: input_number
I think will work. create an input number that you can make a card for in lovelace, and plug it into the aitomation when you make it.
so I'm to remove the min/max/step/etc?
The only thing I'm not totally certain about is will it update within the running of the automation, IE change on the fly, but I think it will.
delete selector down, add entity down.
Thei when you make one it will ask for an input_number
hm, might have an issue somewhere
restarted core and got this
Invalid config for [automation]: Invalid blueprint: extra keys not allowed @ data['blueprint']['input']['target_temperature']['entity']. Got OrderedDict([('domain', 'input_number')]) (See /config/configuration.yaml, line 8).
ok, we have to convert it.
variables:
thermostat: !input thermostat
temperature_sensor: !input temperature_sensor
target: !input target_temperature
target_temperature: "{{ states(target) | float }}"
actual_temperature: "{{ states(temperature_sensor) | float }}"
calculated_adjustment: "{{ target_temperature - actual_temperature }}"
calculated_target_temperature: "{{ ( ( ( target_temperature + calculated_adjustment ) * 2 ) | round ) / 2 }}"
Something like that maybe
add a line & change a line
typo...
fixed
I hate it when they make variables the same name as the !inputs, it's confusing.
I might have to tinker with this a bit more. It's still barking at me about errors, but I'll see how far I can get with it. Appreciate your help!
My internet went out. Wishing g you luck from my phone....๐ฉ
woof. Perhaps that's grounds to set up an automation to reboot your router if ping drops? ๐
lol, no worries
I guess realistically adjusting the temp as-is isn't so bad. I have an entity card basically acting as a reminder whether the automation is on or off, but clicking that, then the pencil in the little window that comes up gets you to the automation settings. That's more approachable than teaching my wife and kids go to in to config, automations, find the automation, edit, etc
I was aiming for a means that was more akin to the simple thermostat card included by default in lovelace where you just drag the slider on the main screen
but I don't anticipate changing temp much overall. Was just looking to make it easier for sake of convenience.
Still I'll dig into this more. Pushing 2 AM here and I have work in a few hours. ๐ฆ
Appreciate your assistance and thanks again for the suggestion! I'll dig in to it more and see where I end up. Good luck on the WAN!
๐