Replies: 2 comments 2 replies
-
Yes it does support doing that, I use this a lot but you need to make sure it is in the correct format ‘HH:MM:SS’ if start_time is a datetime you will need to format it so it presents as ‘HH:MM:00’ |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for your replies. My sensor was time format. I just tried with a text sensor and it works. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
First of all, thank you for this integration! Previously I used it with Direct LAN mode, and recently with Modbus/Serial to Ethernet/WiFi adapters (Elfin EW11).
I really appreciate the ability to set forced load periods on grid, but it does not seem possible to set the periods by HA variable.
Let me explain. I recently changed my contract with my supplier to switch to "Tempo" offer. EDF's Tempo offer is a type of electricity pricing that varies according to consumption periods and days of the week. Here's how the Tempo offer typically works:
Three types of days:
Two differentiated time slots during the day :
With all that, it gives me a total of 6 different tariffs.
Given that my inverter has a battery pack, I am trying to optimize their charge according to the next day's price. The formula (Total Battery capacity - Remaining Battery Capacity) / Charging Rate gives me the required time to charge my batteries. The end of the charging period is always fixed at 05:45. End Charging Periode - Time required to charge give me the start of the charging period.
The integration does not seem to support HA sensor as input in an automation script like that:
service: foxess_modbus.update_charge_period
data:
enable_force_charge: true
enable_charge_from_grid: true
start: "{{ states('sensor.start_time') }}"
end: "05:45:00"
charge_period: "2"
Am I wrong or do you confirm? Would it be possible for you to make this adaptation in the near future?
Thank a lot for the work already done.
Beta Was this translation helpful? Give feedback.
All reactions