Last active
March 31, 2026 13:13
-
-
Save djungelola/f74b32c808cbc2125c47517eba50a162 to your computer and use it in GitHub Desktop.
gridreward notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: Grid Reward Notis | |
| description: Skickar notis när Homevolt eller Bil startar/avslutar en Grid Reward session. | |
| domain: automation | |
| input: | |
| homevolt_sensor: | |
| name: Homevolt State Sensor | |
| default: sensor.homevolt_state | |
| selector: | |
| entity: | |
| domain: sensor | |
| bil_sensor: | |
| name: Bil State Sensor | |
| default: sensor.kona_state | |
| selector: | |
| entity: | |
| domain: sensor | |
| daily_reward_sensor: | |
| name: Dagens Grid Reward Sensor | |
| default: sensor.grid_reward_current_day | |
| selector: | |
| entity: | |
| domain: sensor | |
| notify_target: | |
| name: Notifieringstjänst | |
| default: notify.mobile_app_djungelola_new | |
| selector: | |
| text: | |
| mode: parallel | |
| trigger: | |
| - platform: state | |
| entity_id: !input homevolt_sensor | |
| to: GridRewardDelivering | |
| id: homevolt_start | |
| - platform: state | |
| entity_id: !input bil_sensor | |
| to: GridRewardDelivering | |
| id: bil_start | |
| - platform: state | |
| entity_id: !input homevolt_sensor | |
| from: GridRewardDelivering | |
| to: GridRewardAvailable | |
| id: homevolt_stop | |
| - platform: state | |
| entity_id: !input bil_sensor | |
| from: GridRewardDelivering | |
| to: GridRewardAvailable | |
| id: bil_stop | |
| action: | |
| - choose: | |
| - conditions: | |
| - condition: trigger | |
| id: homevolt_start | |
| sequence: | |
| - action: !input notify_target | |
| data: | |
| message: "Homevolt levererar grid reward" | |
| - conditions: | |
| - condition: trigger | |
| id: bil_start | |
| sequence: | |
| - action: !input notify_target | |
| data: | |
| message: "Bilen levererar grid reward!" | |
| - conditions: | |
| - condition: trigger | |
| id: homevolt_stop | |
| sequence: | |
| - action: !input notify_target | |
| data: | |
| message: > | |
| Homevolt grid reward session avslutad. Dagens total: | |
| {{ states('sensor.grid_reward_current_day') | float(0) | round(2) }} kr | |
| - conditions: | |
| - condition: trigger | |
| id: bil_stop | |
| sequence: | |
| - action: !input notify_target | |
| data: | |
| message: > | |
| Bil grid reward session avslutad. Dagens total: | |
| {{ states('sensor.grid_reward_current_day') | float(0) | round(2) }} kr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment